Trapdoors
This commit is contained in:
+4
-3
@@ -7,7 +7,7 @@ export const AIR_ID = "bworld: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 = 18;
|
||||
export const PROTOCOL_VERSION = 19;
|
||||
|
||||
export interface PlayerInfo {
|
||||
id: string;
|
||||
@@ -110,8 +110,9 @@ export type ClientMessage =
|
||||
| { type: "swing" }
|
||||
// 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`
|
||||
| { type: "use_block"; x: number; y: number; z: number; face: Faces }
|
||||
// right click on a block: interact with it, or place the held block against `face`. hit is where on the block it
|
||||
// clicked, 0 to 1 on each axis, like minecraft's click location
|
||||
| { type: "use_block"; x: number; y: number; z: number; face: Faces; hit?: [number, number, number] }
|
||||
| { type: "select_slot"; slot: number }
|
||||
// a slot of the open menu, or of menu 0 when none is. shift moves the stack to the other part of the menu instead,
|
||||
// like minecraft's quick move. clicks for a menu that isn't open any more are ignored
|
||||
|
||||
Reference in New Issue
Block a user