2

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

1

2 Answers 2

3

I see two simple ways of doing this:

  • Use /gamerule doMobSpawning false to 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.
0
2

TL;DR; Use 2 repeating command blocks which contains the following:

  1. /kill @e[type=minecraft:slime]
  2. /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
  • 2
    The only issue with this answer is that it will show the constant death animation and them dividing; still works nonetheless
    – Penguin
    Feb 8, 2021 at 4:43

You must log in to answer this question.