Hatchable block hatch
Gives the hatchable block's hatch, a whole number. Paper: the value of the 'hatch' property.
A Minecraft element (a value) in World & blocks. Needs the Basic plan or higher to go live; building and testing are free.
Example
When a player right-clicks → Answer hatch: {node.v.value} → Done
Also called
hatchable block, hatch, hatchable, block, block data, state
Works as a data pack?
Yes. A vanilla data pack does this exactly as the plugin does.
What you give it
- Block
What it gives back
- Hatch