Open wheat32 opened 5 years ago
Remove the random line. That line causes the rule to only work some times
Hold on. I misread the rule
What happens if you remove the maxlight line?
It is the same result. Mobs still spawn up to the vanilla maximum amount amount instead of the maxcount amount of 5.
I am now on vacation but I'll check it out when I'm back
Just an update: the issue is still present in 3.9.13
bump
Not sure why that isn't working. I can't see what's wrong. Is that the only rule in the file? is that your entire spawn.json? Can you try to enable debugging (/ctrldebug) and see what rules fire? Post your entire jsons here so I can see what exactly is in it
Weird, having similar issues in 3.9.18. No idea what could be the problem. I wanted mobs from the FNAF Universe mod to spawn in small groups scattered across the world at night and in dark places. Yet they still spawn in massive droves. Not only that, but the spawns only work if the rules are in potentialspawn.json and not spawn.json.
Here's my potentialspawn.json: https://pastebin.com/uqJREeb1
@darthvader45 remove 'maxcount' from potentialspawn and test for that in spawn.json. i.e. you need to combine potentialspawn and spawn
Thanks, will try that.
Edit: Didn't work apparently. Managed a workaround of sorts using conditions to limit spawning based on the number of vanilla hostile mobs. Not entirely the solution I had in mind, but if it works, oh well.
I have the following spawn.json:
I am using a superflat world to test. Monsters still spawn past the maxcount amount.
Oddly enough, I tested this spawn.json file which worked in The End dimension: