ItemsAdder

If ItemsAdder is installed, ClearLaggEnhanced can keep its furniture and custom entities out of Entity Clearing and the Misc Entity Limiter sweep, and leave them out of the Mob Limiter counts. The toggle is read from module/entity-clearing/config.yml even while the Entity Clearing module is turned off.

Turning it on

The protection is off by default. Enable it in module/entity-clearing/config.yml:

yaml
extra-protections:
  items-adder: true

Then run /lagg reload. There is no separate module toggle in config.yml.

How it works

For each entity a clear would remove, ClearLaggEnhanced asks ItemsAdder's own API whether the entity is a piece of furniture or a custom entity, and keeps it if so. Only armor stands, item frames and item displays are checked for furniture, since ItemsAdder furniture is always one of those. Nothing is guessed from entity data, so it follows whatever your installed ItemsAdder version reports.

  • It only applies while ItemsAdder is installed and enabled. With the toggle on and no ItemsAdder, nothing changes.
  • If ItemsAdder cannot answer for an entity, clears keep it and the Mob Limiter counts it. One warning is logged.
  • If the installed ItemsAdder version is not compatible with the hook, the protection switches itself off and says so in the console. Entity clearing keeps running.

ItemsAdder entities don't count towards the Mob Limiter while the toggle is on.