-5

I live in a village and these slimes are ruining my game, please help me get rid of them!

3
  • 3
    that...seem to be very large number of them to be naturally generated
    – Memor-X
    Commented Nov 11, 2014 at 22:33
  • i did say like amd theres 4 viliges #scince Commented Nov 12, 2014 at 23:54
  • 1
    @minecraftrules btw. Minecraft Gamepedia says "cap = constant * chunks / 256" with slimes constant being 70. Biggest village I've ever seen was 5x5 chunks, so the cap is 70 * 25 / 256, which makes 6,8 slimes max for a village. So, 24 is the number of maximum slimes in your 4 villages. #Math ps. The number 6,8 and 24 still counts other animals (like Zombie, Creeper, Pig, Cow etc.) and not just slimes!
    – ave
    Commented Nov 13, 2014 at 18:09

5 Answers 5

16

/kill @e[type=Slime] will kill all the Slimes in the world while leaving everything else alone. With this command in a Command Block, an automatic elimination of Slimes is possible: Just set it to Repeat and Always Active, and then you're done.

2
  • 1.13 (actually earlier) syntax: /kill @e[type=slime]
    – pppery
    Commented Jul 16, 2019 at 13:44
  • I would suggest setting /gamerule doMobLoot to False before doing this and reverting it to True when done. This avoids loot drop lag.
    – GreenMan36
    Commented Apr 19, 2021 at 16:58
7

You can change your difficulty to peaceful.

3

You can create a redstone loop + command block system to constantly remove any unwanted entities(Mobs, Items, Item frames, etc.)

First, create your RS loop (shown below)

Top-down view [r][#][B] [r][r][t]

Key:
[r] = Redstone wire (dust)
[B] = Any solid block, wool works fine
[t] = Redstone torch
[#] = A redstone repeater set to 3 ticks

Now connect any number of Command Blocks (to get Command Blocks enter /give _USERNAME_ minecraft:command_block 1 into the chat) equal to the amount of entities you want to be cleaned up to the redstone wire on that loop.

Enter the following command into the Command Block(s) connected to your loop, replacing _ENTITY_ with the name of the entity you want removed (ei. Cow, Bat, Pig, Spider, Skeleton, Slime):

/kill @e[type=_ENTITY_]

1

If you want to get rid of them permanently, run this command (this will prevent all other types of mobs from spawning):

/gamerule doMobSpawning false

And then this:

/tp @e[type=Slime] ~ -300 ~
2
  • 1
    isn't better /gamerule doslimeSpawning false ? :D
    – user168413
    Commented Dec 25, 2016 at 20:59
  • 1
    The only answer on the internet to actually accomplish what I've been looking for. Thank you.
    – Jimmy
    Commented Mar 14, 2022 at 23:53
-2

/kill @e[type=Slime] is how you kill them, but put it on a repeater to help.

1
  • 2
    This adds nothing beyond what was already said in existing answers.
    – MrLemon
    Commented Jul 9, 2015 at 14:13

Not the answer you're looking for? Browse other questions tagged or ask your own question.