Leaves block maximum distance
Gives the leaves block's maximum distance, a whole number. Paper: the maximum allowed value of the 'distance' 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 maximum distance: {node.v.value} → Done
Also called
leaves block, maximum distance, leaves, 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
- Maximum distance