World & blocks · Step
Set a container slot
Put an item in one slot of a container, replacing what was there. Leave the item empty to empty the slot.
m.world.container_set_slot
In a flow
“When the server starts → Set a container slot 13 of the prize chest to the Item from Make an item.”
When the server starts → Set a container slot 13 of the prize chest to the Item from Make an item.
What it does
Put an item in one slot of a container, replacing what was there. Leave the item empty to empty the slot. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. Find it under World & blocks in the palette.
When to use it
Use it when the flow needs to: put an item in one slot of a container, replacing what was there. Leave the item empty to empty the slot.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- Container Location
-
Where: wire a location in, or type world x y z. It must be a container like a chest, barrel or hopper.
What goes there: Type it in the side panel, or wire in a location. e.g. world 10.5 64 -3.2
If it's empty: Optional. Left empty and unwired, the step runs without it.
- Slot Number
-
Which slot, from 0. A chest has 27 (0 to 26).
What goes there: Type it in the side panel, or wire in a number. e.g. 42
If it's empty: Optional. Left empty and unwired, it uses 0.
Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 501 more
- Item Item
-
The item to put there, like Item from Make an item. Leave it empty to empty the slot.
What goes there: Type it in the side panel, or wire in an item. e.g. 3× Diamond
If it's empty: Optional. Left empty and unwired, the step runs without it.