McJtyMods / InControl

Be In Control of Mob Spawns and others
MIT License
46 stars 18 forks source link

Minimizing the spawn count; questions to maxcount and mincount #151

Open Incarni opened 5 years ago

Incarni commented 5 years ago

Hello!

I am fairly new to all of this jazz and I have spent the past days writing up a little something which allows me to use MoCreatures without custom mob spawner because CMS has a habit of wrecking the spawn of other mods. Most things worked out great, the creatures spawn where they are supposed to, the ones I have disabled don't spawn at all, but there is one big issue I can't seem to fix. The sheer amount of mobs in some areas, especially those that are shared by various animals, is insane. I have tried using maxcount and mincount, but I am honestly a bit lost on how those work exactly. What I have come up with is this:

{ "dimension": 0, "mob": ["mocreatures:ant", "mocreatures:bee", "mocreatures:bird", "mocreatures:blackbear", "mocreatures:boar", "mocreatures:butterfly", "mocreatures:cricket", "mocreatures:deer", "mocreatures:elephant", "mocreatures:dragonfly", "mocreatures:firefly", "mocreatures:fly", "mocreatures:fox", "mocreatures:goat", "mocreatures:grizzlybear", "mocreatures:leopard", "mocreatures:lion", "mocreatures:maggot", "mocreatures:mole", "mocreatures:mouse", "mocreatures:ostrich", "mocreatures:pandabear", "mocreatures:panther", "mocreatures:raccoon", "mocreatures:roach", "mocreatures:snail", "mocreatures:snake", "mocreatures:tiger", "mocreatures:turkey", "mocreatures:turtle"], "mincount": { "amount": 8, "mob": ["mocreatures:ant", "mocreatures:bee", "mocreatures:bird", "mocreatures:blackbear", "mocreatures:boar", "mocreatures:butterfly", "mocreatures:cricket", "mocreatures:deer", "mocreatures:elephant", "mocreatures:dragonfly", "mocreatures:firefly", "mocreatures:fly", "mocreatures:fox", "mocreatures:goat", "mocreatures:grizzlybear", "mocreatures:leopard", "mocreatures:lion", "mocreatures:maggot", "mocreatures:mole", "mocreatures:mouse", "mocreatures:ostrich", "mocreatures:pandabear", "mocreatures:panther", "mocreatures:raccoon", "mocreatures:roach", "mocreatures:snail", "mocreatures:snake", "mocreatures:tiger", "mocreatures:turkey", "mocreatures:turtle"], "passive": true, "onjoin": true, "perplayer": true }, "result": "deny" },

Alternatively, I have also tried perchunk instead of perplayer, as well as a variant without "onjoin". Nothing seems to work. The spawns are still nuts. Am I doing something wrong and if so, what is it that I am messing up?

Help would be greatly appreciated! Thanks in advance!

Greets, Incarni :)

VinterNacht commented 5 years ago

I have had some success using Custom Mob Spawner in conjunction with In Control to control situations like these. I have no idea what CMS does that makes it possible for In Control to manage maximum spawns, but for some mods (like Animania) it's a necessary combo.