Items & inventories · Value
Read custom model data
The custom model data number on an item, and whether it has one.
m.item.model_data_of
In a flow
“When a player right-clicks → Item in hand → Read custom model data → If Number is 7 → Open a menu.”
When a player right-clicks → Item in hand → Read custom model data → If Number is 7 → Open a menu.
What it does
The custom model data number on an item, and whether it has one. 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: the custom model data number on an item, and whether it has one.
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
- Number Number
-
The number, 0 when it has none. e.g. 7
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
- Has Yes / no
-
True when it has one. e.g. true
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAdd a forum tagAdd onboarding questionAdd to a counterAlarms that are dueAndAutoMod: Discord's word listsBluesky latest postBoard as emojiand 573 more