This API can set Mobs still!
What you have to do?
Copy the API and paste it in you class of your plugin!
Then you must write in another class the API path.
Example:
NoAi is the path and to set AI Enable you must set the target mob at first.
Example:
Villager = v
and then you set it to false, if you would to have it that they not go and so on, if you want that they go you must set it to true!
I hope this API can some Developer help <3
What you have to do?
Copy the API and paste it in you class of your plugin!
Then you must write in another class the API path.
Example:
Code (Text):
if(args[0].equalsIgnoreCase("spawnVillager")) {
Villager v = (Villager) p.getWorld().spawnEntity(p.getLocation(), EntityType.VILLAGER);
v.setCustomName("§cBoots§f-§cVillager");
v.setCustomNameVisible(true);
NoAi.setAiEnabled(v, false);
}
Villager v = (Villager) p.getWorld().spawnEntity(p.getLocation(), EntityType.VILLAGER);
v.setCustomName("§cBoots§f-§cVillager");
v.setCustomNameVisible(true);
NoAi.setAiEnabled(v, false);
}
Example:
Villager = v
and then you set it to false, if you would to have it that they not go and so on, if you want that they go you must set it to true!
I hope this API can some Developer help <3
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.8
- 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.
NoAI is a free Minecraft Java mod. Compatible with Minecraft 1.8. Downloaded 348 times (via Spigot). Download it and open it directly in the game.