Skip to content

A way to remove the performance impact of trading halls without sacrificing other villager farms

Notifications You must be signed in to change notification settings

apatuka/AntiVillagerLag

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AntiVillagerLag

SpigotMC: Link

This is a simple plugin that allows your players to optimize their own villagers and does not effect anything vanilla wise. I am making this plugin due to massive trading halls tanking mspt on my servers and others. This will allow trading halls to keep their twice a day villager restocks but won't affect any farms Villagers will be used in, such as Iron Golem Farms, Villager Breeders, Raid Farms, Etc.

How the plugin works

You name a villager with a nametag that matches the name configured in the yml and disables the villagers ai. If you wish to re-enable the villager ai all you have to do is rename it to anything else. The villager gets restocked when the player right clicks the villager. During this right click it checks the custom time stored on the villager of when it was last restocked compared to the current server time.

Please Note

While the villagers are optimized they will not level up at all, sleep in beds, or breed while ai is disabled. The player will need to rename the villager for it to level up.

Features of the Plugin

Nametags will not be used when renaming villagers. This is just to allow easy renaming of all villagers and not have to spend a bunch of resources getting nametags which wil discourage players from wanting to do it. There is a cooldown between renaming villagers to prevent exploiting vanilla restocking and the plugin restocking from both happening in a single day.

Automatically restocks villagers at two set times which are configurable.

Bugs and Support

If you encounter any bugs please open a github issue. I will try to solve it as soon as possible!

For support, you can join the Discord Server

About

A way to remove the performance impact of trading halls without sacrificing other villager farms

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%