Allow mobs to be hit
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user