This commit is contained in:
2026-11-22 13:21:27 -03:00
parent e751d22c6e
commit ac791b886e
23 changed files with 494 additions and 91 deletions
+3 -1
View File
@@ -12,7 +12,7 @@ export const AIR_ID = "cubi:air";
// bump when a client and server of different versions can't play together.
// the server rejects a different version before the client downloads anything
export const PROTOCOL_VERSION = 30;
export const PROTOCOL_VERSION = 31;
export interface PlayerInfo {
id: string;
@@ -132,6 +132,8 @@ export type ClientMessage =
| { type: "hit_block"; x: number; y: number; z: number }
// left click on an entity, by id
| { type: "attack_entity"; id: string }
// right click on an entity, by id, for mods' entity_interact. it uses the held item when they don't stop it
| { type: "interact_entity"; id: string }
// left click at nothing, a swing at the air. it starts the attack cooldown over, like an attack
| { type: "swing" }
// right click without looking at a block, for items' on_use