Elementium Sign in
Contents

Items & inventories · Value

Set durability left

The same item with a set amount of durability left, so 10 means nearly broken.

Basic plan m.item.set_durability_left

In a flow

“When a player enters a region → Item in hand → Set durability left 10 → Set a slot.”

When a player enters a region → Item in hand → Set durability left 10 → Set a slot.

What it does

The same item with a set amount of durability left, so 10 means nearly broken. It's a value node: no white pins, it works out its answer when a step wired to it needs it. It gives 1 value later steps can use. Find it under Items & inventories in the palette.

When to use it

Use it when the flow needs to: the same item with a set amount of durability left, so 10 means nearly broken.

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.

Left Number

How much durability is left. It stops at the item's max.

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

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

Related in Items & inventories

Wires and sockets · Data values · Plans