Lag'B'Gon Reborn

This is intended as a Server Only mod. It does not need to, and should not, be installed on client side.

Lag'B'Gon is a lag reduction utility. It will automatically scan for entities and dropped items at configurable intervals, and remove them from the world, unless they're blacklisted. Additionally, Lag'B'Gon can unload chunks when TPS drops below a configurable level. (Although you cannot set it higher than 15 TPS). Lag'B'Gon is also capable of preventing overbreeding. Players can work around the protection, of course, but it will still help.

All configuration can be handled in game through the /bgon command, and it's sub commands. /bgon is only available to ops.

Commands:

/bgon toggleitem : Places the item you have selected on your hotbar into the item Blacklist, preventing it from being removed during Clears.

/bgon toggleentity <modid:name> : Places the named entity into the Entity blacklist, preventing it from being removed during Clears. For example: "minecraft:skeleton". Use the names displayed by /bgon scanentities for best results.

/bgon interval <time> : Sets the time between automatic Clears. The interval is actually 1 minute longer, as it includes a 1 minute warning.

/bgon toggleauto : Turns automatic clearing on and off.

/bgon listitems : Lists the contents of the item blacklist.

/bgon listentities : Lists the contents of the entity blacklist

/bgon settps <tps> : Sets the TPS below which chunks will be unloaded automatically. Cannot be set higher than 15 in game. If you're insane enough to want it higher, you can do so in the config by hand.

/bgon unload : Manually unloads unused chunks.

/bgon blacklist: Switches between using blacklist and whitelist.

/bgon scanentities this will give you the name of all nearby entities (10x10x10 cube), exactly as it should be entered into the blacklist, to prevent /bgon clear removing them.

/bgon maxperchunk <amount>: Sets maximum entities to spawn per chunk.

/bgon togglenamedremove: Toggle Named Remove.

Breeding Related:

/bgon togglepolice : Turns automatic policing of breeding on.

/bgon setbreedlimit : Sets the maximum allowed mobs of type EntityAgeable in a 10x10x10 chunk, before more breeding is prevented automatically.

Just learned that /forge is a thing as a command. You can use it to list the entity names on your server. For instance you might have a mod like Ice and Fire that doesn't readily expose the mob names. You can use /forge entities list to get that information and then you can blacklist so they don't get delete when clear is run.

Ofcourse turns out that we can use tab complete on /bgon toggleentity modid:entityname too

Just discovered that this mod supports wildcards when adding everything from a mod to the black list.

For instance Animania mobs could be represented as animania:* so that /bgon toggleentity animania:* is a thing and it works! However, do it this way means if you ever want to remove a mob from the blacklist, you'll first have to remove the wildcard and then add all the mobs you want blacklist and leave out the ones you want destroyed.

Sadly, this doesn't work for the item toggler from the command itself, but it does work in the config.

I have seen that you allow to use the command "/bgon toggleentity" so I guess we can protect the "friendly mobs" (unique names from mods) but what about the tamed entities, like a tamed wolf/horse. Does they have other names than minecraft:wolf/horse ?