Villager Optimiser [1.14.2-1.15.2] 1.1.2

Reduces performance impact of villagers in 1.14.2.

  1. froobynooby
    Native Minecraft Version:
    1.14
    Tested Minecraft Versions:
    • 1.14
    • 1.15
    Source Code:
    https://github.com/froobynooby/Anti-Villager-Lag
    Contributors:
    froobynooby, Rincewind34
    1.14.4+ note: As of 1.14.4, the problem this plugin was built to address has mostly been fixed in the vanilla game. The plugin will still work, and will still reduce the entityTick of Villagers, but it will not help nearly as much as in 1.14.2 or 1.14.3.
    Villager Optimiser
    Villagers have new mechanics in 1.14 that cause them to run very CPU expensive pathfinding operations. This plugin aims to reduce their impact on a server's performance by forcing them to run these pathfinding operations less frequently, all while not stopping them from functioning as normal.

    How it works
    Villagers in 1.14 now have memories; they will remember their home (bed), job site and meeting place. If a villager is missing one of these memories then they will actively search for it. This plugin more or less works by filling in these memories with some placeholder value so the villagers stop searching, and then releasing this memory every now and then so it can still perform *some* searches.

    The effect is that villagers run these pathfinding operations far less often. This doesn't have too much effect on them because they run them far too often as it is! Fact is, if they run it 30 times less frequently, the impact on you server decreases by a factor of 30. With this plugin, villagers will only run one operation per 30 seconds by default - but this is configurable.

    Prefer a video explanation? Watch this video by stifflered:


    Installation and configuration
    To install the plugin is simple: download the jar, place it in your plugins folder and reload or restart the server. This will generate a folder called 'VillagerOptimiser' in your plugins directory. Inside is a config file which allows you change the time between pathfinding operations, as described above.

    Please note that this plugin requires 1.14.2 or higher. It specifically requires a patch that was released on the 19th of June, 2019 - so make sure you are using a recent 1.14.2 build or a higher version.

    Metrics: We use bStats to collect some (non-identifying) data about servers using this plugin. You can opt out by editing the config.yml in the bStats directory of your plugin directory.

    You may also want to try the plugin SAML. This can help you to further reduce lag from mobs on your server, and it works just fine with this plugin.

Recent Reviews

  1. rocket003
    rocket003
    5/5,
    Version: 1.1.2
    Fantastic plugin. Running a 1.15.2 server and my friends and I built a town bustling with villagers. Without this plugin, it was running at 11-13 TPS and now it's at a solid 20. This plugin may not be as effective as it was in 1.14 but it is super effective in larger scales. Fantastic job
  2. kixmc
    kixmc
    5/5,
    Version: 1.1.2
    Works perfectly. Improved my TPS from 12-13 to solid 20. Thank you for this! -
  3. Rispy_CZ
    Rispy_CZ
    5/5,
    Version: 1.1.2
    Very awesome plugin! Very usefull for survival and semi-vanilla server where is a lot of villagers for example our server went from 10TPS to 20TPS
  4. Area_54
    Area_54
    5/5,
    Version: 1.1.2
    Very simple config. Recommended by many to reduce those pesky villagers. Running a 1.15.2 paperMC server, and this definitely keeps them from lagging the server as bad.
  5. dinoboss2001
    dinoboss2001
    5/5,
    Version: 1.1.2
    me gusta su plugin y como dev directo que soy me gusta aclarar que me gustaría una función que permita dejar cambiar o no de clase a un villager xd
  6. lokka30
    lokka30
    5/5,
    Version: 1.1.2
    An awesome plugin for survival servers especially
    Counters villager lag without compromising gameplay
    Author is quick for support
    Highly recommended
    1. froobynooby
      Author's Response
      Thanks very much for the review! Glad you like the plugin
  7. arboriginal
    arboriginal
    5/5,
    Version: 1.1.2
    I used 1.1 for months on 1.14 without any issue, and now 1.2 with 1.15 which seems to work fine too. The author is reactive, nice and know his subject. I also really appreciate the simplicity of the config. So, don't think twice: Install it and enjoy. Thanks for the sharing!
    1. froobynooby
      Author's Response
      Thanks for the kind words! I appreciate the review
  8. superfly2000
    superfly2000
    4/5,
    Version: 1.1.1
    Not super sure that it actually help but it feels good to have it. It does sound strange that the vanilla villagers behave like that...
    1. froobynooby
      Author's Response
      Thanks for the review! The plugin mainly helps in the case where you have a lot of villagers that don't have jobs or beds. In that case it can usually reduce their entityTick by 20% or so. Before 1.14.4, though, the performance improvement was much more pronounced.
  9. Jokni
    Jokni
    5/5,
    Version: 1.1.1
    Amazing plugin, this improved the tps so much! Cant believe how unoptimized villagers are.
    1. froobynooby
      Author's Response
      Thanks for the review! Glad it's helped
  10. Gustavo_Player
    Gustavo_Player
    5/5,
    Version: 1.1.1
    Dude, my review dissapeared or I don't did a review? Anyways, good plugin. =D
    1. froobynooby
      Author's Response
      Thanks for the review either way! I appreciate it