Allow mobs to be hit

This commit is contained in:
2026-09-30 10:29:13 -03:00
parent 9e580f175e
commit 65f27d6099
8 changed files with 143 additions and 1 deletions
+2
View File
@@ -87,6 +87,8 @@ export type ClientMessage =
| { type: "break_block"; x: number; y: number; z: number }
// the player started hitting a block, for on_click
| { type: "hit_block"; x: number; y: number; z: number }
// left click on an entity, by id
| { type: "attack_entity"; id: string }
// right click without looking at a block, for items' on_use
| { type: "use_item" }
// right click on a block: interact with it, or place the held block against `face`