How do you make slimes not spawn randomly
By Joseph Russell •
How do you make slimes not spawn? They are very annoying especially in a superflat world. I want to make them not spawn randomly. In 1.16
12 Answers
I see two simple ways of doing this:
- Use
/gamerule doMobSpawning falseto disable spawning of all mobs in your superflat world. - Use a repeating command block to
/tp @e[type=minecraft:slime] ~ -1000 ~, so that they don't split into multiple slimes. - Set the difficulty to peaceful.
TL;DR; Use 2 repeating command blocks which contains the following:
/kill @e[type=minecraft:slime]/kill @e[type=minecraft:item,name=Slimeball]
Apart from @ExpertCoder14's answer, you can also use another repeating command block with /kill @e[type=minecraft:slime].
Although this doesn't stop slime from spawning, it at least gets rid of it, though it could be a mess dealing with, because remember, there are slimeballs when slime are killed.
It is easily managed with another repeating command block with /kill @e[type=minecraft:item,name=Slimeball], and you can get rid of them.
Problem solved, no more slimes in the way.
1