October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
Blog

Can You Stop Slimes From Spawning in Superflat?

In Java Edition, set a new Superflat world's surface above Y=40 to stop slime spawns, or use broader controls or local spawn-proofing in an existing world.
WorldSuperflat? Length3 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Yes. In Java Edition, a community-maintained Minecraft Wiki tutorial says to set a new Superflat world’s surface above Y=40 to prevent slime spawns. In an existing world, /gamerule doMobSpawning false stops natural mob spawning broadly—not just slimes. For more selective control, spawn-proof the affected areas; torches alone do not stop slime-chunk spawns.

Choose a method based on what you want to keep

Your goal Approach Tradeoff
Stop slimes in a new Java Superflat world but keep other natural mobs Set the custom terrain surface above Y=40 during world generation, as described in the Minecraft Wiki Superflat tutorial. This is a world-generation choice, not a simple toggle for an existing flat world. The height guidance is Java-specific and comes from a community-maintained tutorial.
Stop new natural spawns in an existing Java world Run /gamerule doMobSpawning false. It affects natural mob spawning generally, not only slimes. Existing mobs are not removed, and the tutorial says spawners are unaffected.
Remove hostile mobs broadly Change difficulty to Peaceful in the game menus or run /difficulty peaceful. Peaceful affects hostile mobs generally and changes other gameplay effects; it is not a slime-only control.
Keep other mobs and target particular areas Identify the affected Java slime chunks and block spawning on their surfaces with bottom slabs or path blocks. The tutorial also mentions covering ground with water. This requires finding and treating the relevant spawn surfaces; water may disrupt how the area is used.
Clear slimes that are already present or keep clearing new ones With command or command-block access, use /kill @e[type=minecraft:slime] or teleport slimes away. Confirm syntax for your game version. Killing may leave drops. The tutorial says teleporting slimes into the void avoids slimeball drops.

For a new Java Superflat world: raise the surface

The Minecraft Wiki’s Superflat tutorial recommends setting the surface above Y=40 to stop slimes from spawning. This is guidance for Java Edition, and custom-preset behavior can depend on the version you play. It is a world-generation solution, so it is most useful when creating a world rather than trying to change an existing flat world’s terrain settings.

For an existing world: choose between global rules and local prevention

Disable natural mob spawning

In Java Edition, run /gamerule doMobSpawning false. This prevents natural mob spawning broadly, so it also affects mobs besides slimes. It does not remove mobs already in the world; the tutorial says mob spawners are unaffected. Use it when you want a quick global change, not when you need other natural spawns to continue.

Use Peaceful only if the broader change is acceptable

Peaceful is another broad option for stopping hostile mobs. Change the difficulty in the menus or use /difficulty peaceful. Because this changes hostile-mob behavior generally, it may not suit a world where you want to keep other hostile mobs.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
LEGO Minecraft Zombie Dungeon 21587
  • MINECRAFT TOY FOR KIDS – LEGO Minecraft Zombie Dungeon (21587) building toy for boys and girls ages 8 years old and up
  • 5 LEGO FIGURES – Builders can cast a Wastelands Wanderer minifigure, a slime and 3 zombies (including one with enchanted leggings and gold sword and one with diamond helmet) in their pretend play adventure stories
  • GAMING-INSPIRED FUNCTIONS – Set in the Minecraft desert biome, this zombie dungeon features a rotating, zombie-spawning chamber and a sliding piece that triggers a rockfall
  • INSPIRE CREATIVE STORYTELLING – The Wastelands Wanderer, equipped with a diamond pickaxe, mace and netherite armor, takes on a slime and 3 zombies in the desert biome dungeon
  • ACCESSORIES FOR PRETEND PLAY – Features netherite armor, a mace, diamond pickaxe, gold sword, diamond helmet, crafting table, torch and a chest containing bread, bone and rotten flesh

Spawn-proof the area if you want other mobs to remain

For targeted control, locate the affected Java slime chunks and make their spawn surfaces unsuitable with blocks such as bottom slabs or path blocks. The Minecraft Wiki slime-farming tutorial also mentions covering the ground with water, but that may be disruptive. Torches are not a substitute: the tutorial says slime-chunk spawns can happen at any light level.

Bedrock Edition: do not assume the Java height advice applies

The above-Y=40 recommendation is not confirmed by the official Bedrock references cited here. Microsoft Learn’s Bedrock spawn-rules example identifies the entity as minecraft:slime, places it in the monster population group, and shows difficulty and biome filters in a behavior-pack example. Those details describe Bedrock behavior-pack rules; they do not establish the Java Superflat height mechanic for Bedrock.

Rank #2
Sale
LEGO Minecraft The Creeper Kids Building Toy - Minecraft Toy for Boys & Girls, Ages 10+ - Room Decor for Gamers w/ 1st Version Creeper Minifigure - Gift for Birthdays - 21276
  • BUILD THE DREADED CREEPER – Young explorers, ages 10 and up, build a large poseable version of the iconic Minecraft mob
  • MINECRAFT ACTION FIGURE – Kids construct every detail of the Creeper, from its 4 poseable legs to its detachable head
  • HIDDEN SURPRISE INSIDE – Builders can remove the Creeper's head to reveal a compartment that hides a first-version Creeper minifigure and TNT element
  • POSEABLE ROOM DECOR – After building, kids can put their creation on display in the bedroom or playroom
  • GIFT IDEA FOR KIDS – Makes a wonderful birthday or any-time gift idea for boys and girls

Microsoft Learn describes Bedrock’s domobspawning rule as controlling whether mobs spawn into the game in its commands documentation. Check your edition and command permissions before applying platform-specific instructions. The sources cited here do not establish a vanilla slime-only gamerule.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Why lighting does not solve slime-chunk spawns

Slimes in slime chunks can spawn at any light level, according to the Minecraft Wiki slime-farming tutorial. Adding torches may help with other hostile mobs, but it will not prevent slime spawns in those chunks.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
LEGO Minecraft Chicken Jockey 21582
  • MINECRAFT BUILDING TOY – Kids can take a wild ride with the LEGO Minecraft Chicken Jockey (21582) building set for boys and girls ages 9 years old and up, a fun creative experience with familiar mobs for gaming inspired play
  • 3 LEGO MINECRAFT FIGURES – Bring virtual adventures to life with 3 large scale characters built from LEGO bricks: a baby zombie with a jointed head, arms and legs, a chicken with movable wings and legs, and a baby chicken
  • PLAY AND DISPLAY – Young fans can enjoy hours of pretend play before creating a dynamic piece of video game decor that's perfect for a desk, shelf or nightstand in their bedroom
  • BUILDABLE CHICKEN JOCKEY – Kids can recreate one of the game’s most iconic features by setting the baby zombie on the chicken to assemble the mischievous chicken jockey
  • GIFT IDEAS FOR GAMERS – This versatile gaming toy makes a great birthday, holiday or any time gift idea for boys and girls ages 9 years old and up
Rank #4
Sale
LEGO Minecraft The Warden Encounter Kids Toy - Collectible Building Set for Boys and Girls 7+- with Silent Ranger Minifigure - Great Birthday Gift for Gamers and Kids Who Love Minecraft Toys - 21274
  • ADVENTURE AWAITS – The Warden Encounter for boys and girls takes kids on an exciting cave exploration where they'll come face-to face with a dreaded Warden
  • BUILD THE GAME – This Minecraft building toy includes a Silent Ranger minifigure, a Minecraft chicken and a buildable and poseable Minecraft Warden
  • INTERACTIVE FEATURES & ACCESSORIES – Kids use the exploding TNT and falling rock functions, mine diamonds in the cave, restore health with potions and carrots, and pose the warden's head, arms, and legs
  • PRETEND PLAY POSSIBILITIES – Packed with familiar details from the Minecraft game, this LEGO set sparks imagination by placing young gamers right in the center of the action
  • MINECRAFT GIFT FOR KIDS – This LEGO video game toy makes a great birthday, holiday or any-day gift for boys and girls ages 7 and up
Rank #3
Sale
LEGO Minecraft Chicken Farm 21585
  • DEFEND THE CHICKEN FARM – LEGO Minecraft Chicken Farm (21585) building toy for boys and girls ages 7 years old and up features a chicken-shaped coop with movable wings, opening gate and fun gaming-inspired details
  • 4 MINECRAFT TOY FIGURES – Includes a Chicken Fan minifigure, plus a baby zombie (who likes to ride the chicken), fox, cold chicken and a baby chicken
  • GAMING-INSPIRED FUNCTIONS – The giant chicken-shaped coop lays eggs at the rear and dispenses seed from its mouth into a container, which tilts forward when the chickens need food
  • CREATIVE STORYTELLING POSSIBILITIES – Young players can help the Chicken Fan care for the chickens while fending off a fox trying to eat the cold chicken and a baby zombie trying to hitch a ride
  • ACCESSORIES FOR PRETEND PLAY – Features torches, hay, a smoker stove, 2 eggs, 2 lots of seeds, a chicken leg, feather and an axe

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How To Create Custom Stickers & Shoutouts In Monster Hunter WildsMonster Hunter WildsBlog20min
  2. How to Get XL Gogoat in Pokemon Legends Z-A (An Extra-Large Gogoat)Pokemon Legends Z-ABlog20min
  3. How to Get Rotting Lightbringer in Diablo 4Diablo 4Blog17min
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.