Elementium Sign in

Distance between entities

How far apart two entities (or an entity and a player) are, in blocks. They must be in the same world.

Try it on your server

A Minecraft element (a value) in Entities & mobs. Needs the Basic plan or higher to go live; building and testing are free.

Example

When a player uses a command → Distance between entities → Answer: {node.d.distance} blocks.

Also called

distance, how far, range, between, apart

Works as a data pack?

No. This one needs the Elementium plugin on a Paper server.

What you give it

What it gives back

Related

All Minecraft elements