I am currently working on a map where I would like to have a select few mobs spawned in, but I would like to prevent others from spawning. So I figured I'd do /gamerule doMobSpawning false and use eggs to forcefully spawn in mobs. However, I have found that this does not work. Cheats have always been on.
I have tried:
Putting the command in both chat and a command block
Typing the command, using tab to autofill the command, and copying and pasting the command
Double and triple checking that the command is capitalized correctly
Using /kill @e multiple times
Making sure the gamerule is set to false
Using both commands to change the difficulty and the options menu
Here it has been stated that this is fixed in 1.13. However, I really do not want to switch to 1.13 as I have quite a few mods that don't have versions compatable with 1.13, such as Mo' Creatures.
Is there any way I can fix this without switching to 1.13, or do I have to switch to get it to work properly?