Elementium Sign in
Contents

Items & inventories · Value

Split a stack

Take some of a stack as one item and keep the rest as another.

Basic plan m.item.split

In a flow

“When a player uses a command → Item in hand → Split a stack: 8 → Give an item stack.”

When a player uses a command → Item in hand → Split a stack: 8 → Give an item stack.

What it does

Take some of a stack as one item and keep the rest as another. It's a value node: no white pins, it works out its answer when a step wired to it needs it. It gives 2 values later steps can use. Find it under Items & inventories in the palette.

When to use it

Use it when the flow needs to: take some of a stack as one item and keep the rest as another.

When not to

For a value that never changes, type it into the setting instead of wiring a node.

Typical wiring

Sockets: settings you can wire

Item Item

The item: wire one in, like Item from Make an item.

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.

Amount Number

How many go in the part you take. The rest stays behind.

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 1.

Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 501 more

Values it gives

Item Item

The item. Wire it into Give an item stack or another item step. e.g. 1× Diamond Sword

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 554 more

Rest Item

What stays behind. e.g. 56× Cobblestone

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 554 more

Related in Items & inventories

Wires and sockets · Data values · Plans