Elementium Sign in

Leaves block distance

Gives the leaves block's distance, a whole number. Paper: the value of the 'distance' property.

Try it on your server

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 distance: {node.v.value} → Done

Also called

leaves block, 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

What it gives back

Related

All Minecraft elements