AntiVillagerLag
This useful plugin helps players optimize villagers without affecting standard game mechanics. It was created to solve the problem of significant performance drops on servers caused by large trading halls.
How It Works
You can disable villager AI in several ways:
- Use a name tag with a specific name
- Place the villager on a special block
- Set up a workstation
After optimization, the villager retains the ability to restock twice a day and level up, but stops participating in automatic farms (iron golems, breeding, raids, and others).
Restoring Functionality
To return the villager to normal behavior, simply:
- Change the name to any other
- Move to a different block
- Remove the workstation
Restocking
The player can manually restock the villager by right-clicking on it. The system checks the time of the last restock and the current server time. Villager experience is also tracked - when the level-up threshold is reached, AI is temporarily enabled to obtain new trades.
Commands and Permissions
/avlreload- reload configuration (avl.reload)/avloptimize <radius>- mass optimization within radius (avl.optimize)- Rename cooldown bypass: avl.renamecooldown.bypass
- Restock cooldown bypass: avl.restockcooldown.bypass
- Next restock notifications: avl.message.nextrestock
- Plugin disable for group: avl.disable
Features of Optimized Villagers
Optimized villagers do not sleep in beds, do not breed, do not take damage from zombies, and do not work in automatic farms. The radius optimization command can bypass some territory protection systems and is intended for administrators.
Main Features
- Enable/disable AI via name tags
- Enable/disable AI via blocks
- Enable/disable AI via workstations
- Control over name tag usage
- Manual villager restocking
- Restock time configuration
- Automatic leveling up
- Message formatting support
If you find bugs or want to suggest improvements, create a corresponding request on GitHub.