Make players mobs too !

This commit is contained in:
2026-09-30 10:42:52 -03:00
parent 65f27d6099
commit 4fbcca6851
23 changed files with 314 additions and 132 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ Deno.test("a stove is placed lit and heats the pot, coal relights it, and standi
// standing on it: 1 every 10 ticks
t.game.destroy_block(...POT);
t.send(1, { type: "move", x: 0.5, y: 101, z: 0.5, yaw: 0, pitch: 0 });
const health = () => t.game.players()[0].vitals.health;
const health = () => t.game.players()[0].health;
// (full hunger heals some of it back meanwhile, like minecraft)
const before = health();
t.ticks(40);