Find the nearest block
Look around a location for the nearest block of a type. Ties go to the lowest x, then y, then z.
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 uses a command → Find the nearest minecraft:diamond_ore within 10 → Teleport them there.
Also called
find block, nearest ore, locate block, search, scan around
Works as a data pack?
No. This one needs the Elementium plugin on a Paper server.
What you give it
- Around
- Radius
What it gives back
- Found
- Location
- Distance