Nearest NPC
The closest NPC to a location, within some blocks.
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
- Near
- Within
What it gives back
- Name
- Entity
- Found
- Distance