/kill @e[type=Slime]
will kill all the Slimes in the world while leaving everything else alone. With this command in a Command BlockCommand Block, an automatic elimination of Slimes is possible: Just set it to Repeat and Always Active, and then you're done.
Added automatic way to solve this problem, so no manual execution is needed. A link for how to get a command block is added.
user143228
- 6.7k
- 13
- 49
- 87
Added automatic way to solve this problem, so no manual execution is needed. A link for how to get a command block is added.