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

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

To stop normal mob spawning, change the gamerule for the server’s world. Java Edition commonly uses /gamerule doMobSpawning false; Bedrock Edition uses /gamerule domobspawning false. You need operator or equivalent permission, and the rule must be changed in the world you intend to affect.

These commands stop natural spawning; they do not automatically remove mobs that already exist, mobs created by commands or spawn eggs, every spawner, or every structure-related entity. Use Peaceful difficulty only when you want the wider Peaceful rules, not merely a narrow spawning switch.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

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

Quick command reference

Edition Disable natural spawning Restore natural spawning Important distinction
Java Edition /gamerule doMobSpawning false /gamerule doMobSpawning true Gamerule names use Java’s capitalization. Java 1.21.9 also changed the old server-property approach; see the version note below.
Bedrock Edition /gamerule domobspawning false /gamerule domobspawning true The rule name is lowercase. Microsoft defines it as a Boolean rule controlling whether mobs spawn into the game.
Any edition /difficulty peaceful Set the desired difficulty again Peaceful prevents hostile monsters but changes the world’s broader difficulty behavior, so it is not equivalent to the gamerule.

Run a command in chat if you have the required permission, or in the server console or hosting panel’s command field. Some consoles expect the command without the leading slash; follow that console’s command format.

What turning off mob spawning actually changes

The gamerule targets natural spawning: the game’s ordinary attempts to create mobs as part of world simulation. It is the narrowest control when you want to keep the current difficulty and terrain behavior while preventing new naturally spawned mobs.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.
  • Existing entities can remain. Mobs already loaded in the world are not necessarily deleted when the rule changes. They may need to be removed separately or allowed to leave the area through normal game mechanics.
  • Commands and summon actions are separate. A player or command block with permission can still create entities with commands, depending on edition and version.
  • Spawn eggs and spawners can be separate. A spawn egg, mob spawner, or another special spawning mechanic may continue to create entities even while natural spawning is disabled.
  • Structures can have their own behavior. Entities associated with structure generation or special encounters do not automatically make the gamerule a universal “no entities” switch.
  • Passive and hostile mobs are not the same category. The natural-spawn gamerule is broader than a hostile-monster-only setting, while Peaceful specifically changes monster behavior and other difficulty rules.

Because edition and release versions implement special cases differently, test the exact behavior in your server’s version rather than assuming that every possible source of a mob has been disabled.

Java Edition: disable natural spawning

Before you start

  1. Confirm that the server is running Java Edition and note its Minecraft release. A command that is valid in Java is not automatically valid in Bedrock.
  2. Make sure you are an operator or have an equivalent permission to change gamerules. On a managed server, the owner or panel administrator may need to grant this access.
  3. Enter the command while connected to the intended world. If your setup exposes multiple worlds or dimensions separately, verify that you are operating on the one where you want the change.

Apply the gamerule

  1. Open the in-game chat, or open the server console/command field.
  2. Enter the Java command in the reference table with the value false.
  3. Submit it and wait for the command feedback. A successful command normally reports the updated value or otherwise confirms the rule change.
  4. Move to a suitable area and observe whether new naturally generated mobs appear. Existing mobs may still be present, so their presence immediately after the change is not proof that the command failed.

Check the current value

Use the Java gamerule query form, /gamerule doMobSpawning, where your release supports querying a rule without supplying a value. The response should show whether the value is true or false. If your server does not accept the query form, inspect the gamerule list or the command feedback provided after setting it.

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

Restore normal spawning

When you want natural spawning back, run the Java restore command in the reference table with true. The setting is a world gamerule, so it remains in effect until you change it again rather than expiring at the end of a session.

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth

Java 1.21.9 and later: the old server property changed

Java server administration changed in version 1.21.9. Mojang’s release notes state that the spawn-monsters server property was removed in favor of the spawnMonsters game rule. In practical terms, adding or editing the old hyphenated property in server.properties is not the current control on releases that include this change.

What to do on an affected release

  1. Check the release your server actually runs; do not assume that a configuration guide for an older Java version still applies.
  2. Inspect the available gamerules in that release. If spawnMonsters is listed, it is the gamerule replacement for the removed spawn-monsters property.
  3. Use the gamerule command format accepted by your release for that rule, such as setting the listed rule to false, rather than relying on the removed property.
  4. For the broad natural-spawning switch, use the Java doMobSpawning command shown above when that is the behavior you need.

The two names should not be mixed: spawn-monsters is the removed server-property spelling, while spawnMonsters is the newer gamerule spelling. If a command is rejected, list the rules supported by your exact release and use its displayed capitalization.

Bedrock Edition: disable natural spawning

Check permissions and edition

  1. Confirm that the server or Realm is Bedrock Edition. Bedrock uses a lowercase gamerule name that differs from Java’s camel-case spelling.
  2. Ensure that your account has the world permissions needed to run commands. In a hosted environment, use the server console or grant the appropriate operator role.
  3. Run the command in the intended world. A panel may let you select a world before opening its console; verify that selection first.

Set the Bedrock rule

  1. Open chat or the server’s command console.
  2. Enter the Bedrock disable command in the reference table with false.
  3. Submit it and read the confirmation. Microsoft documents domobspawning as a Boolean rule controlling whether mobs spawn into the game; its valid values are true and false.
  4. Check a newly loaded area after the command. Mobs that were already present can remain, and special spawning methods can have separate behavior.

Verify or restore it

Where the command implementation supports a value-less query, enter the same lowercase rule name without a value to display its current Boolean state. To return to normal natural spawning, use the Bedrock restore command from the table with true.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black | LED mouse pad with 14 lighting modes, covers keyboard & mouse, anti-slip rubber base, waterproof surface, USB powered
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

When Peaceful difficulty is the better choice

Use /difficulty peaceful when your goal is a Peaceful survival experience in which hostile monsters are prevented. This is a broader world-state change than turning off natural spawning. Difficulty affects more than the creation of new mobs, so players may notice other survival rules and combat behavior changing as well.

Choose Peaceful if you want

  • A world designed to avoid hostile monsters rather than a world that preserves its existing difficulty setting.
  • A simple, whole-world difficulty command instead of managing a natural-spawn gamerule.
  • The Peaceful rules as a package, including their effect on hostile-monster gameplay.

Choose the gamerule if you want

  • To keep Easy, Normal, or Hard difficulty while stopping ordinary natural mob spawning.
  • To make a build, lobby, or event area quieter without changing every difficulty-dependent mechanic.
  • To retain more control over special entities, commands, spawn eggs, and spawners instead of treating the entire world as Peaceful.

Changing to Peaceful is therefore not a substitute for the gamerule when the requirement is specifically “stop natural spawning but leave the rest of the difficulty intact.”

Existing mobs, summoned mobs, and spawners

Existing mobs

Changing a gamerule changes what the game may create after the change; it is not a cleanup command. Hostile mobs, animals, villagers, or other entities already in loaded chunks can remain. If the objective is an empty map, plan a separate cleanup operation and make sure it is targeted so that players, item frames, armor stands, pets, and other wanted entities are not accidentally removed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

Summons and command blocks

A command such as a summon action is an explicit request to create an entity, not an ordinary natural-spawn attempt. A player with command access or an automated command block may therefore continue to create mobs after the gamerule is false. Review command blocks, datapacks, and server scripts if mobs keep appearing in a controlled build.

Spawn eggs

Spawn eggs are an intentional player action. If players can use them, disabling natural spawning alone does not prevent egg-created mobs. Adjust permissions, inventory access, or the area’s rules when spawn eggs must also be prohibited.

Spawners and special encounters

Mob spawners and structure-related encounters can follow mechanics distinct from ordinary natural spawning. Test the specific spawner or structure in the server version you run, and secure or remove it if it must not produce entities.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Using a hosting panel or dedicated-server console

A control panel is only another way to send a Minecraft command. Look for a live console, command box, or world gamerule section, then apply the edition-appropriate command and read the returned message. A panel’s “disable mobs” checkbox may be a convenience label rather than a universal setting; confirm which gamerule or difficulty command it actually sends.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Console syntax: Some consoles require the command without /, while chat normally uses the slash. If the panel reports an unknown command, try its documented console format.
  • World selection: Ensure the command is sent to the active world, not a lobby, test world, or a different instance on the same account.
  • Restart behavior: A gamerule is saved with the world. A panel action that merely changes a temporary session setting may not be equivalent, so verify the value again after a restart.
  • Configuration files: Do not assume that an old server-property key still works on a newer release, especially Java 1.21.9 and later.

Troubleshooting a rejected command or continuing spawns

“Unknown or incomplete command”

  • Check that you are using the correct edition spelling: Java uses doMobSpawning; Bedrock uses domobspawning.
  • Check capitalization and punctuation. Java gamerule names are case-sensitive in practice, and the Bedrock spelling has no capital letters.
  • Confirm that the server release supports the rule you entered. Java’s 1.21.9 change is particularly important for anyone following an older spawn-monsters configuration guide.

“You do not have permission”

Ask the server owner to grant operator or equivalent command permission, or run the command from an authenticated console. On a local Bedrock world, commands may require the world’s cheats or command permissions to be enabled; enabling them can affect that world’s achievement eligibility, so check the game’s warning before proceeding.

The command succeeds but mobs are still visible

  1. Wait for the current entities to leave or remove only the unwanted entities with a carefully targeted method.
  2. Check whether a command block, datapack, plugin, script, spawn egg, or spawner is creating them.
  3. Test in a newly loaded area and distinguish naturally created mobs from entities that were already present.
  4. Verify the gamerule again in the correct world and, where relevant, dimension.

Spawning returns after a restart

Query the gamerule after restarting. If it reverted, the command may have been sent to a temporary instance, a different world, or a panel setting that is reapplied from configuration. On Java 1.21.9 and later, remove reliance on the obsolete spawn-monsters property and use the supported gamerule for the release.

Only hostile mobs must stop

Decide whether the requirement is a Peaceful world or a narrower release-specific monster rule. Peaceful changes the entire difficulty state. Java releases that expose spawnMonsters identify it as the replacement for the old spawn-monsters server property; inspect that release’s gamerule list and documentation before applying it, because rule availability and behavior are version-dependent.

Decision guide

Goal Use What changes What may still happen
Stop ordinary natural spawning while preserving the selected difficulty Edition-specific doMobSpawning or domobspawning gamerule set to false Natural spawning is disabled for the affected world/rule context. Existing mobs, summons, spawn eggs, spawners, and some structure-related entities may remain or operate separately.
Prevent hostile monsters through the whole world’s Peaceful mode /difficulty peaceful The broader Peaceful difficulty rules apply. This is not a narrow natural-spawn toggle; other difficulty-dependent behavior changes too.
Migrate a Java server from an old configuration file The supported gamerule on the server’s current release Java 1.21.9 removed spawn-monsters in favor of spawnMonsters. Other entity-creation mechanisms are not automatically disabled.

Final verification checklist

  • You identified Java or Bedrock and checked the exact Minecraft release.
  • You used the edition’s exact gamerule spelling and Boolean value.
  • You ran the command with operator or equivalent permission in the intended world.
  • You verified the resulting gamerule value after applying it.
  • You tested in a newly loaded area instead of judging only by mobs that were already present.
  • You checked command blocks, datapacks, spawn eggs, spawners, and structure mechanics if entities continued appearing.
  • You avoided Peaceful unless changing the wider difficulty rules was acceptable.
  • You checked Java 1.21.9 or later for the move from spawn-monsters to spawnMonsters.

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.