Tutorials/Managing Slimes In Superflat Mode - Minecraft Wiki - Fandom

On superflat maps, slimes spawn in enormous numbers, and dealing with them can become extremely tedious. Three main tricks are commonly used to handle them, although the first two are outdated methods. The first of these are to build walls or fences around areas you wish to keep slime-free. Fences would stop all slimes as well as any other mobs, or spaced columns of dirt two blocks high with a one-block gap between each will keep out medium and large slimes while still permitting all other mobs (and the harmless tiny slimes) to pass through. The second common trick is to build a slime pit or a 'slime cage' that traps any slime that blunders into it, thereby controlling the problem by coralling the slimes into known locations. Iron golems will attract slimes, so adding an iron golem to the slime cage will drastically increase the catch (fencing the iron golem in via fences will prevent it from killing the slimes). Finally, there is a third method for versions 1.9 and up. This version uses a clock with a command block. If no slimes at all are desired, then the world can simply be generated with a surface y level above 40, which will stop the slime spawns. For details, see how to create custom world generation presets.

Contents

  • 1 Slime pit (Outdated)
  • 2 Slime cage (Outdated)
  • 3 Moat (Outdated)
  • 4 Command block auto-killer (Creative with cheats only)
  • 5 Turning on Peaceful Mode
  • 6 Using the MobSpawning Gamerule

Slime pit (Outdated)[]

5×5×3 slime pit

5×5×3 slime pit

This slime pit is 5×5×3, and has been dug down to bedrock and given a one-block 'lip'. The lip ensures slimes already in the pit don't sometimes push new arrivals away before they can fall in. Recommended size is about 7×7. 4×4 is about the minimum practical size because otherwise larger slimes arriving at an angle won't fall in. Rather than making one enormous pit, it's usually better to make several medium-sized pits in different areas.

Slime cage (Outdated)[]

Simple slime cage

Simple slime cage

This simple slime cage made of dirt blocks traps small and large slimes but not any other mob type. Note the one-block 'steps' that allow slimes to climb into the cage, but not back out again. Their only escape is to be destroyed or to despawn. If you want to use a slime cage to help keep an area slime-free, put the steps on the inside, then any slime that does appear inside can find its way out, but not back in again.

The key idea behind both trap types is to ensure the slimes are trapped rather than killed; once enough slimes are trapped, the mob spawn rate in that area is greatly reduced and new mobs — slime or not — will largely stop spawning. When you want to do some mob farming, simply move 128+ meters away from the slime pit, at which point all the slimes in it will despawn and mobs of all types will then start reappearing elsewhere as they normally would. A good tip is to do this either shortly before nightfall or shortly before dawn to maximize the number of farmable non-slime mobs that appear. By this method you can roughly control the numbers of mobs appearing in an area by luring more or fewer slimes into your slime pits.

One minor tip is to ensure your slime pits are dug out of earshot of the areas you spend the most time in, otherwise the sound of dozens of constantly-jumping slimes can also become very wearing.

Note that given the large area covered by a typical NPC village, if you enclose an entire village inside a single wall, it's highly probable that there will be at least one slime-spawning chunk inside the village. You may wish to place blocks allowing slimes to exit certain areas and not re-enter them in order to keep their numbers manageable.

Using snowballs the player can push a slime away from the village or other area, though this is most practical in creative mode. Slimes may also be pushed into lava pits.

Moat (Outdated)[]

A moat uses the same principle as a slime pit, but it takes advantage of the fact that slimes cannot swim. For simply stopping slimes, a one-block deep moat will freeze them in their tracks, but it will only drown the smallest ones. To kill all kinds of slimes, make it three blocks wide and three blocks deep. A water moat has the advantage that it forms a complete barrier against slimes, but is completely harmless to the player and other mobs. Dry moats will capture other mobs and fail to kill the slimes. Moats are also easy to build and look nice. In 1.13 it is possible to use magma blocks to pull slimes and all other mobs down using bubble columns. If there are a lot of nearby villages, the player might be able to fill the moat with lava to kill mobs of all kinds although the only downside is that it destroys the items they drop and experience orbs unless they use hoppers.

Command block auto-killer (Creative with cheats only)[]

This simple trick can be achieved by using a repeating command block with the setting always active on. In the command block, use this simple command: /kill @e[type=minecraft:slime] or /tp @e[type=minecraft:slime] ~ -70 ~ (The second command stops slimeball drops by teleporting the slimes into the void)

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)

Turning on Peaceful Mode[]

One alternative method is to turn monsters on 'peaceful' mode. This, however, prevents all hostile mobs from spawning, as well as other various in-game effects (such as starvation).

Java:

Visit the game menu and change the Difficulty box near the top-right corner by clicking on it. Note: this only works if the difficulty is not locked.

Bedrock:

Pause, go to options, and then find the 'game' tab. You should be able to change it from there.

On both, though, you can do /difficulty peaceful

Using the MobSpawning Gamerule[]

The best option if you want to keep peaceful off, but still keep the mobs away, is to use '/gamerule doMobSpawning false'. Though this does have a downside, even peaceful mobs won't spawn, they also won't despawn. Meaning any mobs already in the world are unaffected. Spawners are immune to this gamerule, meaning they can be used to continue having mobs spawn, without the ones you don't want.

This can either be set at the beginning of a java world, in the newer 'gamerules' window when creating a world, or can be changed midgame if your cheats are turned on.

To turn this on, either open your chat, or hit the slash key, dependent on what your keybinds are set to. Then type in; '/gamerule doMobSpawning false' and hit enter.

In bedrock, it's a world setting. Simply open your world settings, scroll to the box that says 'Mob Spawning' and turn it off.

Tutorials
Introductory
  • Menu screen
  • Game terms
Newcomer survival
  • The first day/beginner's guide
  • The second day
  • The third day
  • Hunger management
  • Things not to do
  • Simple tips and tricks
  • Your first ten minutes
Shelters
  • Best biomes for homes
  • Best building materials
  • Building and construction
  • Navigation
  • Shelters
  • Shelter types
General
  • Achievement guide
  • Advancement guide
  • Best enchantments guide
  • Breaking bedrock
  • Combat
  • Complete main adventure
  • Creating a village
  • Downgrading
  • Dual wielding
  • End survival
  • Exploring caverns
  • Gathering resources on peaceful difficulty
  • Getting food quickly
  • Headless pistons
  • Hitboxes
  • Horses
  • Indestructible end crystals
  • Mapping
  • Measuring distance
  • Minecraft in education
  • Mining
    • Diamonds
    • Fossils
    • Ancient Debris
  • Nether hub
  • Nether portals
  • Nether survival
  • Organization
  • Pillar jumping
  • PvP
    • PvP bases
  • Spawn-proofing
  • Summoning jockeys
  • The Void
  • Time-saving tips
  • Thunderstorm survival
  • Units of measure
  • Village mechanics
    • Trading
  • X-ray glitches
Challenges
  • Acquiring a conduit
  • Curing a zombie villager
  • Defeating temples
  • Defeating a village raid
  • Defeating a Nether fortress
  • Defeating a bastion remnant
  • Defeating a monster room
  • Defeating a pillager outpost
  • Defeating a woodland mansion
  • Defeating a monument
  • Defeating an End city
  • Defeating the Ender dragon
  • Defeating the Wither
  • Exploring an ancient city
  • Obtaining every music disc
Non-standardsurvival
  • Adventure survival
  • Half hearted hardcore
  • Hardcore mode
  • Surviving in a single area indefinitely
  • Infinite desert survival
  • Island survival
  • Manhunt
  • Mob switch
  • Nomadic experience
  • Skywars survival
  • Superflat survival
  • Flat survival
  • Ultra hardcore survival
Challenge maps
  • Beating a challenge map
  • Creating a challenge map
Constructions
  • Adding beauty to constructions
  • Airlock
  • Architectural terms
  • Building a cruise ship
  • Building a metropolis
  • Building a rollercoaster
  • Building safe homes
  • Building water features
  • Color palette
  • Creating shapes
  • Defense
  • Desert shelter
  • Elevators
  • Endless circling pool
  • Furniture
  • Glazed terracotta patterns
  • Making nice floors
  • Pixel art
  • Ranches
  • Roof types
    • Curved roofs
    • Roof construction guidelines
    • Roof decorations
  • Secret door
  • Settlement guide
  • Underwater home
  • Walls and buttresses
  • Water gate
  • Water-powered boat transportation
Farming
Blocks and items
  • Amethyst
  • Armor
  • Azalea
  • Bamboo
  • Basalt
  • Bedrock
  • Blaze rod
  • Bone meal
  • Cactus
  • Chorus fruit
  • Clay and mud
  • Cobblestone
  • Cocoa bean
  • Copper
  • Crops (Beetroot, Carrot, Potato, Wheat)
  • Dirt
  • Dragon's breath
  • Dripstone
  • Egg
  • Fern
  • Fish
  • Flower
  • Froglight
  • Glow berries
  • Glow ink sac
  • Glow lichen
  • Goat horn
  • Gold
  • Hanging roots
  • Honey
  • Ice
  • Iron
  • Kelp
  • Lava
  • Meat
  • Moss block
  • Mushroom
  • Music disc
  • Nautilus shell
  • Nether growth
  • Nether vine
  • Nether wart
  • Obsidian
  • Powder snow
  • Pumpkin, Melon
  • Rooted dirt
  • Sculk growths
  • Scute
  • Seagrass
  • Sea pickle
  • Snow
  • Soul soil
  • Sugar cane
  • Sweet berries
  • Tree
  • Trident
  • Vine
  • Villager trading hall
  • Wither rose
  • Wool
  • Duplication
Mobs
  • Mob farming
  • Mob grinding
  • Monster spawner traps
  • Allay
  • Animals
  • Axolotl
  • Blaze
  • Cat
  • Cave spider
  • Creeper
  • Drowned
  • Ender dragon
  • Enderman
  • Frog
  • Goat
  • Guardian
  • Hoglin
  • Iron golem
  • Magma cube
  • Phantom
  • Piglin bartering farm
  • Raid
  • Shulker
  • Slime
  • Squid
  • Turtle
  • Villager
  • Wandering trader
  • Warden
  • Witch
  • Wither
  • Wither skeleton
  • Zombie
  • Zombie villager
  • Zombified piglin
OP farms
  • End of light mob farms
Enchantingand smelting
  • Enchantment mechanics
  • Anvil mechanics
  • Automatic smelting
  • Manual smelting
Blockbreaking
  • Blast chamber
  • Igniting TNT underwater
  • Wither cage
Mechanisms
Basic redstone
  • Automatic respawn anchor recharger
  • Basic logic gates
  • Combination locks
  • Command block
  • Flying machines
  • Hopper
  • Item sorting
  • Item transportation
  • Mechanisms
  • Observer stabilizer
  • Randomizers
  • Redstone music
  • Redstone tips
  • Rube Goldberg machine
  • Shulker box storage
  • Villager trading hall
Detectors
  • Block update detector
  • Comparator update detector
  • Daylight sensor
  • Day night detector
Minecarts
  • Train station
  • Minecarts
    • Storage
    • Storage system
Traps
  • Snow golems
  • TNT cannons
  • Trapdoor uses
  • Trap design
  • Traps
Pistons
  • Piston uses
  • Piston circuits
  • Quasi-connectivity
  • Zero-ticking
  • Instant repeaters
Advancedredstone
  • Advanced redstone circuits
  • Arithmetic logic
  • Calculator
  • Command stats
  • Hourly clock
  • Morse code
  • Printer
  • Redstone computers
  • Redstone telegraph
Servers
  • Playing on servers
  • Multiplayer Survival
  • Spawn jail
  • Griefing prevention
  • Joining a LAN world with alternate accounts
Server setup
  • Setting up a server
  • Server startup script
  • FreeBSD startup script
  • OpenBSD startup script
  • Ubuntu startup script
  • Setting up a Hamachi server
  • Setting up a Minecraft Forge server
  • Setting up a Spigot server
  • Ramdisk enabled server
Technical
  • Improving frame rate
  • Minecraft help FAQ (IRC channel)
  • Update Java
Maps
  • Custom maps
  • Map downloads
  • Command NBT tags
  • Falling blocks
  • Updating old terrain using MCEdit
Resource packs
  • Creating a resource pack
  • Loading a resource pack
  • Sound directory
Data packs
  • Creating a data pack
  • Installing a data pack
  • Custom world generation
CreatingMinecraft media
  • Creating videos
  • Livestreaming
Game installation
  • Installing snapshots
  • Joining and leaving the Bedrock Edition beta program
  • How to get a crash report
  • Installing Forge mods
  • Custom Minecraft directory
  • Playing and saving Minecraft on a thumb drive
  • Playing and saving Minecraft on a thumb drive with the old launcher
  • Recover corrupted saved world data
  • Run Minecraft through Google Drive
  • Save game data to Dropbox (world data only)
  • Saved data Dropbox guide
Outdated
  • Building micro shelters
  • Custom texture packs
  • Door-based iron golem farming
  • Far Lands
  • How to get a crash report
  • Installing mods
  • Man-made lake
  • Managing slimes in superflat mode
  • Minecart booster
  • Potion farming
  • Repeater reboot system
  • Survival with no enabled data packs
  • Update LWJGL
  • Update Minecraft
  • Village chaining
  • Water ladder
  • Water tram

Tag » How To Stop Slimes From Spawning