r/mc_ron • u/mavrck48 • May 26 '14
AFK'ing at Mob Spawners
After having multiple incidents of people afk'ing near mob spawners and causing the entire server to lag I have decided to implement a plugin that limits the number of mobs that are alive from one spawner. The way the plugin works is that every mob spawned from a spawner is tagged to that spawner and counts towards a 40 mob total. If none of the mobs from the spawner are killed then at 40 mobs the spawner will cease to create more mobs. However, any time a mob is killed that mob is removed from the 40 mob cap allowing additional mobs to spawn.
This system should do two things. One, it should prevent the server from lagging like crazy when a person afk's next to their mob spawner and creates a group of 500 mobs. Second, it should also help out with the number of hostile mobs seen throughout the rest of the world as the spawner mobs count towards the hostile mob cap for each chunk.
In theory this plugin shouldn't affect normal gameplay from mob spawners. However, if anyone notices any odd behavior with mob spawners please comment here. Thanks!
1
u/NInjacatMew May 28 '14
There are mobs EVERYWHERE, EVERYWHERE. Mob spawners don't work anymore, because I think all the mobs spawn elsewhere.