Elementium Sign in

Nearest NPC

The closest NPC to a location, within some blocks.

Try it on your server

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

Example

When a player uses a command → Nearest NPC → If Found → Answer: Talk to {node.n.name}.

Also called

closest npc, npc near, find npc

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