Move effects out of cubi
This commit is contained in:
@@ -186,7 +186,7 @@ Deno.test("dying takes 1 durability off every tool carried, and ones that run ou
|
||||
|
||||
Deno.test("mods can stop or change damage, and hurt, heal and feed players", async () => {
|
||||
const t = await setup();
|
||||
t.game.mods.before.player_damage.for_mod("test").subscribe((event) => {
|
||||
t.game.mods.before.entity_damage.for_mod("test").subscribe((event) => {
|
||||
if (event.cause === "fall") event.cancel = true;
|
||||
if (event.cause === "poison") event.amount = 1;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user