Description
A library plugin that allows other plugins to customize villagers from their java code. It also allows plugins to request information about villages.
Usage
First, you need to install the VillageUtilities.jar on your server. Then in your plugin.yml you need to add "VillageUtilities" to your dependencies, and in your project add VillageUtilitiesApi.jar to your classpath.
In your code you can use the api like this:
@Override
public void onEnable() {
From there you can access the villages in a world like this:
VillageSystem villages = villageApi.getVillages(Bukkit.getWorld("world"));
You can consult the javadoc on what you can do with this VillageSystem object.
From there you can access the villages in a world like this:
CustomizableVillager cVillager = villageApi.getCustomizableVillager(/* some instance of org.bukkit.entity.Villager here */);
The CustomVillager object can then be used to modify the trades. For all possibilities, please consult the javadoc.
A library plugin that allows other plugins to customize villagers from their java code. It also allows plugins to request information about villages.
Usage
First, you need to install the VillageUtilities.jar on your server. Then in your plugin.yml you need to add "VillageUtilities" to your dependencies, and in your project add VillageUtilitiesApi.jar to your classpath.
In your code you can use the api like this:
@Override
public void onEnable() {
VillageApi villageApi = (VillageApi) getServer().getPluginManager().getPlugin("VillageUtilities");
}
From there you can access the villages in a world like this:
VillageSystem villages = villageApi.getVillages(Bukkit.getWorld("world"));
You can consult the javadoc on what you can do with this VillageSystem object.
From there you can access the villages in a world like this:
CustomizableVillager cVillager = villageApi.getCustomizableVillager(/* some instance of org.bukkit.entity.Villager here */);
The CustomVillager object can then be used to modify the trades. For all possibilities, please consult the javadoc.
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.
Village + Villager API is a free Minecraft Java mod. Downloaded 485 times (via Spigot). Download it and open it directly in the game.