Q to drop

This commit is contained in:
2026-09-25 16:42:19 -03:00
parent a254b96f65
commit d107405f62
6 changed files with 116 additions and 0 deletions
+2
View File
@@ -71,6 +71,8 @@ export type ClientMessage =
| { type: "use_block"; x: number; y: number; z: number; face: Faces }
| { type: "select_slot"; slot: number }
| { type: "click"; container: ContainerKey; index: number; button: number }
// 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
| { type: "close_screen" }
| { type: "chat"; text: string };