Read custom model data
The custom model data number on an item, and whether it has one.
A Minecraft element (a value) in Items & inventories. Needs the Basic plan or higher to go live; building and testing are free.
Example
When a player right-clicks → Item in hand → Read custom model data → If Number is 7 → Open a menu.
Also called
model data, custom model data, read cmd
Works as a data pack?
No. This one needs the Elementium plugin on a Paper server.
What you give it
- Item
What it gives back
- Number
- Has