Minecraft wiki entry for Managing_slimes_in_superflat_mode, associated text: The player can also type the following commands directly into the chatbox: /gamerule doMobSpawning false (This method will make it so no mobs (including slimes) will spawn in the world)