Elementium Sign in
Contents

Items & inventories · Value

List enchantments

How many enchantments an item has and their names.

Basic plan m.item.enchant_count

In a flow

“When a player right-clicks → Item in hand → List enchantments → Answer: {node.l.count} enchantments.”

When a player right-clicks → Item in hand → List enchantments → Answer: {node.l.count} enchantments.

What it does

How many enchantments an item has and their names. 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: how many enchantments an item has and their names.

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

Names list:text

Their names, like sharpness. e.g. sharpness, unbreaking

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

Connects toCreate pollPoll with resultsAdd onboarding questionAdd to listAdd up timesAutoMod: add or remove allowed wordsAutoMod: add or remove wordsAutoMod: block wordsand 90 more

Often next

Related in Items & inventories

Wires and sockets · Data values · Plans