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
+5
View File
@@ -61,6 +61,11 @@ Give the block `"interactive": true` so clients don't guess that the click place
client. `on_take` is the place to use up a recipe's inputs, so taking the result and spending the inputs happen in the
same step, like the smithing table does.
Shift clicking follows the same rules. A stack shift clicked in the player's inventory goes into the screen's slots in
`layout` order, only those whose `filter` takes it and never `output_only` ones: first onto stacks of the same item,
then into empty slots. A stack shift clicked in the screen goes to the player's inventory, and an `output_only` slot
only gives its item that way when it all fits, after `on_take` agrees.
## Progress Bars
`bars` draws progress bars, filled with one property divided by another: