Move effects out of cubi

This commit is contained in:
2026-11-05 22:37:41 -03:00
parent 0e2d8fdcac
commit 9bc8fd992a
17 changed files with 452 additions and 70 deletions
+1 -1
View File
@@ -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;
});