Elementium Sign in

Distance to the border

How many blocks a location is from the nearest edge of its world's border. Negative means it is outside.

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 moves to another block → Distance to the border → If under 10 → Show an action bar line.

Also called

border distance, edge, how close, near border

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