Items & inventories · Check
Item has model data
Whether an item has a custom model data number, or a particular one.
m.item.has_model_data
In a flow
“When a player right-clicks → Item in hand → If Item has model data 7 → Open a menu.”
When a player right-clicks → Item in hand → If Item has model data 7 → Open a menu.
What it does
Whether an item has a custom model data number, or a particular one. It's a check: put it in an If, and the flow goes one way when it's true and the other when it isn't. Find it under Items & inventories in the palette.
When to use it
Use it when the flow needs to: whether an item has a custom model data number, or a particular one.
When not to
To pick between more than two outcomes, Switch or Random reads better than a chain of checks.
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.
- Number Number
-
The model data number to look for. 0 means any.
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 0.
Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 501 more