Worm bin working with both worms and grubs

This commit is contained in:
2026-10-12 02:22:44 -03:00
parent ff5fb971da
commit df26248f4a
13 changed files with 222 additions and 60 deletions
+4 -3
View File
@@ -61,14 +61,15 @@ returns the slot's **menu slot index**: slots are numbered in the order they're
| `output_only` | Can only be taken from, all at once, like the furnace result. |
| `on_take` | For `output_only` slots: runs when a player takes from it, before they get the item. Return `false` to stop them. |
| `icon` | A texture drawn in the slot while it's empty, like Minecraft's armor slots. |
| `max_count` | The most the slot holds, when that's less than a stack, like Minecraft's `Slot.getMaxStackSize`. |
`add_player_inventory(x, y)` adds the player's 36 slots, like NeoForge's `addStandardInventorySlots`: the rest of the
inventory in 3 rows from `x` and `y`, and the hotbar 58 pixels under them. They're added in inventory order, so
inventory slot `i` is the returned index plus `i`.
`filter`, `output_only` and `on_take` run **on the server**, so players can't put the wrong items in by editing their
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.
`filter`, `output_only`, `on_take` and `max_count` run **on the server**, so players can't put the wrong items in by
editing their 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