Sueta

Simple Anti-Mob Lag [1.9-1.16]

2.0.0

Reduce the performance impact of mobs and farms without affecting gameplay.

·Plugin

Please consider using FarmControl instead of SAML. It is unlikely SAML will be supported into the future.

Simple Anti-Mob Lag
A plugin for reducing the performance impact of mobs and farms

Simple Anti-Mob Lag (SAML) aims to prevent or mitigate TPS loss caused by mobs in a way that does not affect gameplay. This is achieved by nerfing or freezing mobs in in particular groups; either passively or when the TPS is low.

A frozen mob has no AI whatsoever; they don't move, they're not affected by gravity, water cannot push them and they don't perform several entity-specific functions (such as sheep regrowing their wool). A nerfed mob will just be missing some of its pathfinding goals; the goals it loses and the goals it keeps are completely configurable.

By default the plugin will passively nerf all animal farms. All this does (by default) is remove the 'random stroll' pathfinding goal from animals in farms, i.e. it just stops animals from walking around randomly. If the farms aren't too densely packed this causes the animals to stop bumping into each other constantly ( example), and this can significantly reduce their performance impact on the server. By default we will also freeze mobs in large groups when the TPS of the server drops below 18.5, and, in small increments, unfreeze mobs when the TPS rises above 19.5 and is sufficiently stable. Everything here is configurable.

Installation and configuration

Installation is very simple. Just put the jar file in your plugins folder and restart or reload the server. This will generate the configuration files for the plugin in the 'SAML' folder in your plugin directory.

There's a lot for you to configure. Here's what the config file looks like:

Similar projects

Plugin →