October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober 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

How to Change Mob Spawning in Minecraft: Java and Bedrock Commands

The built-in Minecraft mob-spawning gamerule turns spawning on or off; it does not set a custom rate. Here are the correct commands for Bedrock and Java, plus advanced options.
WorldMinecraft: Java and Bedrock Commands Length2 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Minecraft’s built-in mob-spawning gamerule is an on/off switch, not a slider for choosing a custom spawn rate. In Bedrock, use /gamerule domobspawning false to disable spawning or /gamerule domobspawning true to re-enable it. In Java, the command name depends on the game version: newer versions use /gamerule minecraft:spawn_mobs false or true, while older versions use /gamerule doMobSpawning false or true.

Disable or enable mob spawning with a command

Run the command in chat, replacing false with true when you want to turn spawning back on. These commands change the gamerule for the world; they do not set a custom percentage or frequency.

Edition and version Disable spawning Enable spawning
Bedrock Edition /gamerule domobspawning false /gamerule domobspawning true
Java Edition with the newer game-rule name /gamerule minecraft:spawn_mobs false /gamerule minecraft:spawn_mobs true
Older Java Edition versions /gamerule doMobSpawning false /gamerule doMobSpawning true

Microsoft documents Bedrock’s domobspawning rule as a Boolean that controls whether mobs spawn into the game: Bedrock gamerule reference. Mojang documented the Java rename from doMobSpawning to minecraft:spawn_mobs in its 25w44a snapshot notes.

If a command is rejected

  • Check whether the command matches your edition and version. In Java, use command autocomplete after typing /gamerule to see the names accepted by your game.
  • You need permission to use commands in the world. In a hosted world or server, that depends on its settings and your role; ask the owner or administrator if you cannot run the command.

What the gamerule changes—and what it does not

The gamerule toggles the spawning covered by that rule. It does not provide a numeric control such as “spawn 50% fewer mobs,” nor does it let you choose a new spawn rate for one mob type. Turning it off is therefore a broad change, not a fine adjustment. It also does not mean that every mob already present will be removed; the rule concerns spawning.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Minecraft | Java & Bedrock Deluxe Collection | Windows Digital Code
  • DELUXE COLLECTION — Includes Minecraft: Java & Bedrock Edition, three Bedrock add-ons, three exclusive Character Creator items, and 700 Minecoins.
  • CREATE YOUR WORLD — Build whatever you imagine in an infinite world that’s unique in every playthrough.
  • EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world filled with surprises.
  • SURVIVE THE ADVENTURE — Face mysterious foes, travel across exciting landscapes, and venture into perilous dimensions.
  • PLAY TOGETHER — Play cross-platform with friends in Bedrock Edition on console, mobile, and PC, or join community servers in Java Edition on PC, Mac, and Linux. Online console multiplayer requires a platform-specific subscription (sold separately).

Java servers: use the game rule, not an outdated property

Server instructions can be version-sensitive. Mojang’s Java 1.21.11 release notes say the former spawn-monsters server property was removed in favor of a game rule. Use the gamerule appropriate to the server’s installed version rather than relying on older guides that instruct you to change that property. The same release notes state that mobs no longer spawn during chunk generation when minecraft:spawn_mobs is false: Java Edition 1.21.11 release notes.

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

For finer control, use custom spawn rules

Bedrock: data-driven spawn rules

Bedrock creators can customize conditions through data-driven spawning, typically by editing behavior-pack content. Microsoft’s documentation covers conditions and controls such as difficulty, distance, brightness, height, herd size, delay, and population-density limits. Spawn rules also assign entities to population-control pools with limits. This is a creator configuration workflow, not a general in-game rate slider, and exact setup can depend on the platform and tools used. See Microsoft’s Data-Driven Spawn Rules and spawn component reference.

Rank #2
Minecraft | Java & Bedrock Ultimate Collection | Windows Digital Code
  • ULTIMATE COLLECTION — Includes Minecraft: Java & Bedrock Edition, five Bedrock add-ons, five exclusive Character Creator items, and 1000 Minecoins.
  • CREATE YOUR WORLD — Build whatever you imagine in an infinite world that’s unique in every playthrough.
  • EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world filled with surprises.
  • SURVIVE THE ADVENTURE — Face mysterious foes, travel across exciting landscapes, and venture into perilous dimensions.
  • PLAY TOGETHER — Play cross-platform with friends in Bedrock Edition on console, mobile, and PC, or join community servers in Java Edition on PC, Mac, and Linux. Online console multiplayer requires a platform-specific subscription (sold separately).

Java 26.3: a world-generation setting, not a live rate dial

Java 26.3 release notes describe minecraft:gameplay/creature_world_gen_spawn_probability, with a documented default of 0.1. This is the probability of an iteration for creature-category mobs during world generation in dimensions and biomes; it is not a general control for how frequently mobs spawn in an already-running world. The notes also describe minecraft:gameplay/natural_mob_spawns as an environment attribute for mob spawns. See the Java Edition 26.3 release notes.

Quick Recap

Bestseller No. 4
Minecraft
Minecraft
Skins! We have biome settlers, city folk, town folk, and more!; The Nether and all its inhabitants. Fight Ghasts and make friends with Pigmen
$6.99
Bestseller No. 5
Minecraft - Bedrock Edition PS4
Minecraft - Bedrock Edition PS4
Play and share with friends on console, mobile and Windows 10; discover community creations in the new in-game store
$42.98
Best Value
Minecraft - Bedrock Edition PS4
  • Play and share with friends on console, mobile and Windows 10
  • discover community creations in the new in-game store
  • access new mini games and game modes through servers
Rank #4
Minecraft
  • Skins! We have biome settlers, city folk, town folk, and more!
  • The Nether and all its inhabitants. Fight Ghasts and make friends with Pigmen
  • Cross platform play for up to five players between Pocket Edition and Windows 10
  • Revamped touch controls, controller support, and a controller mapping screen
  • Enhanced Weather effects! Accumulating snow and more
Rank #3
Minecraft | Standard Edition | XBOX Digital Code
  • CREATE YOUR WORLD — Build whatever you imagine in an infinite world that is unique in every playthrough.
  • EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world full of surprises.
  • SURVIVAL ADVENTURES — Face mysterious foes, travel across varied landscapes, and venture into perilous dimensions.
  • PLAY TOGETHER — Play solo or join friends in local split-screen and cross-platform play across console, mobile, and PC. Online multiplayer supports up to 8 players.
  • COMMUNITY PLAY — Connect with players on community servers, or subscribe to Realms Plus (sold separately) to play with up to 10 friends on a private server.

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.

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

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 Turn On Vibrant Visuals in MinecraftMinecraftBlog3min
  2. Best Multiplayer Games for Low-End PCsBlog4min
  3. Minecraft: How To Use And Install OptiFineBlog5min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

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.