Elementium Sign in
Contents

Items & inventories · Value

Count lore lines

Count the description lines under an item's name. It gives 0 for an item with none.

Basic plan m.item.lore_count

In a flow

“When a player right-clicks → Item in hand → Count lore lines → If Count is 0 → Answer: Nothing special.”

When a player right-clicks → Item in hand → Count lore lines → If Count is 0 → Answer: Nothing special.

What it does

Count the description lines under an item's name. It gives 0 for an item with none. 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: count the description lines under an item's name. It gives 0 for an item with none.

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 in hand from Item in hand.

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.

Values it gives

Count Number

How many lines. e.g. 2

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

Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more

Often next

Related in Items & inventories

Wires and sockets · Data values · Plans