AntiVillagerLag icon

AntiVillagerLag -----

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




Fixed restock not working and default permissions
----------, Feb 17, 2025

Complete Rewrite / Warning
Please run the /avlremove command as this will wipe any of the old data on villagers and ensure compatibility with new code.

New Commands
/avlunoptimize Allows you to unoptimize in a radius

/avlremove Removes all changes done by the plugin

Bug Fixes
Fixed a memory leak with workbench radius optimize Fixed the villager renaming even though it was on cooldown

Please report any issues to me on github or the discord

Updated Permission List
avl.cooldown.bypass

avl.disable

avl.message.nextrestock

avl.optimize

avl.reload

avl.remove

avl.restockcooldown.bypass

avl.unoptimize
----------, Jan 27, 2025

Fixed prevent trade option from not working.

Fixed the Block check to finally work again.
----------, Mar 5, 2023

Added the ability for work stations to disable villagers

Added a check that will prevent trading if the villager isn't disabled (toggleable)

Fixed a bug that when the placeholder from time is removed from a message it would throw an error

PLEASE DELETE THE CONFIG FILE AND GENERATE A NEW ONE
----------, Feb 28, 2023

Added Hex Support For Messages

Fixed restock message showing a negative number after the last restock

Changed the way how disabling the villagers work. They will now be affected by gravity, players pushing them, and water
----------, Jan 19, 2023

PLEASE DELETE CONFIG FILE SO A NEW ONE CAN GENERATE WITH THE NEW CHANGES

Rewrote Restock Villager to support multiple times Rewrote Block System to support multiple blocks Rewrote NamteTag system to support multiple nametags
----------, Jan 16, 2023

Fixed an issue with AI staying disabled after Villager was turned into a zombie villager.
Fixed by not allowing the villager to take damage when disabled by the plugin.
----------, Dec 19, 2022

Fixed Villager not having ai re-enabled when no longer standing on the disable block.
----------, Aug 17, 2022

Fixed nametags duping when right clicking a villager on cooldown
----------, Aug 14, 2022

Added support for 1.17

Fixed an error when people would close the wandering traders inventory

Added command /avloptimize <radius>

This will optimize any villager in the specified radius. This is meant to be used as an admin command for large servers to easily disable villagers for players.

Configurable max radius for /avloptimize

New permissions:
avl.optimize
----------, Aug 2, 2022

All the current know bugs have been fixed.
----------, Jul 30, 2022

Fixed a bug where right clicking with a blank nametag would give them another. Causing a dupe with nametags.
----------, Jul 24, 2022

Fixed error when right clicking any other mob.
----------, Jul 24, 2022

Completely rewrote the plugin to be cleaner and removed any known bugs.

Added the feature that will let villagers level up when they meet xp requirements. This removes the need for players to rename villagers to level up
added bstats
----------, Jul 24, 2022

Fixed when Villagers having AI disabled by block they wouldn't restock
----------, Jul 20, 2022

Fixed a bug if the world had a custom name and it would error.
Added message to config but it should auto update now.

Fixed block not properly disabling ai.
----------, Jul 14, 2022

PLEASE UPDATE OR DELETE YOUR CONFIG FOR THE NEW CHANGES.
The most up to date version of the config can be found here.

This update allows you to toggle the use of nametags when renaming villagers.

Added the option to use a certain block to disable villager ai. This is off by default.

Added the option to disable the use of nametags disabling the villager ai.
----------, Jul 11, 2022

Fixed world name being hard coded. Should no longer error.
----------, Jul 11, 2022

THIS UPDATE CHANGES MESSAGES SO PLEASE UPDATE THEM


Added permission to bypass rename cooldown: avl.renamecooldown.bypass

Added permission to bypass restock cooldown: avl.restockcooldown.bypass

Added a permission that sends a message telling the player when the next restock is: avl.message.nextrestock

Changed the cooldown message to be minutes and seconds. Not just seconds


----------, Jul 7, 2022

When naming villager for first time it will no longer set the cooldown and you have to wait to rename it

Names no longer have to exactly match the disable name. It ignores capitalization.
----------, Jul 4, 2022

Resource Information
Author:
----------
Total Downloads: 3,051
First Release: Jun 27, 2022
Last Update: Feb 17, 2025
Category: ---------------
All-Time Rating:
14 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings