The best API to get nearest players, creatures and entities from a player location! It's the best customizable api without messages etc.
I have written an example how you can use the API. You can find the example in my github repo.
Source Code avaible on GitHub
Functions
I have written an example how you can use the API. You can find the example in my github repo.
Source Code avaible on GitHub
Functions
- getNearestEntity(Player player, double x, double y, double z)
- getNearestEntity(Player player)
- getNearestEntities(Player player, int maxEntities, double x, double y, double z)
- getNearestEntities(Player player, int maxPlayers)
- getNearestCreature(Player player, double x, double y, double z)
- getNearestCreature(Player player)
- getNearestCreatures(Player player, int maxCreatures, double x, double y, double z)
- getNearestCreatures(Player player, int maxPlayers)
- getNearestPlayer(Player player, double x, double y, double z)
- getNearestPlayer(Player player)
- getNearestPlayers(Player player, int maxPlayers, double x, double y, double z)
- getNearestPlayers(Player player, int maxPlayers)
Quick facts
- Edition: Minecraft Java
- File type: .jar
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
NearestAPI (Open Source) is a free Minecraft Java mod. Downloaded 370 times (via Spigot). Download it and open it directly in the game.