Shift clicking

This commit is contained in:
2026-09-30 00:30:33 -03:00
parent 7dc78aac76
commit 88659bb7af
6 changed files with 227 additions and 10 deletions
+2 -1
View File
@@ -92,7 +92,8 @@ export type ClientMessage =
// 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 }
| { type: "select_slot"; slot: number }
| { type: "click"; container: ContainerKey; index: number; button: number }
// shift moves the stack to the other part of the screen instead, like minecraft's quick move
| { type: "click"; container: ContainerKey; index: number; button: number; shift?: boolean }
// q on a slot (the held one when no screen is open) throws one item, or the whole stack with ctrl
| { type: "drop_item"; container: ContainerKey; index: number; all: boolean }
// closes the open screen, including the player's own inventory screen