Free tools Windows power users keep installed
One-click scans. No signup required.
The command is /gamerule <rule_name> <value>, but the rule name depends on your edition and version. Java Edition 1.21.11 and later uses snake_case names such as keep_inventory and mob_griefing. Older Java versions use camelCase names, while Bedrock Edition uses lowercase names without separators, such as keepinventory. Choose the correct spelling first, then change only the settings that match how you want the world to play.
Prefer not to run the server on your own PC? Godlike.Host offers hosted Minecraft Java servers with free DDoS protection and up to three free backups a day.
What a Minecraft gamerule controls
A gamerule is a named world or server setting that changes a specific piece of game behavior. The /gamerule command reads a rule or writes a new value to it. Rules can control time, weather, mob behavior, death penalties, command feedback and simulation speed.
As an Amazon Associate I earn from qualifying purchases.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteGamerules are not resource-pack options and they do not change a player’s key bindings. They are saved with the world (or applied to the server world), so a setting normally affects everyone playing that world. The exact rule list and spelling are edition- and version-dependent.
Command form
/gamerule <rule_name> <value>
For example, on a Java installation using the current names, the following stops the normal passage of time:
#1 Best Overall
- BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
- EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
- COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
- LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
- WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
/gamerule advance_time false
Boolean rules accept true or false. Numeric rules, such as randomTickSpeed on older Java versions or its current equivalent where applicable, require a number. Enter the argument exactly as your edition expects; Java command arguments have been case-sensitive since 1.13.
Check your edition and version before typing a rule
The same behavior can have three different spellings. A command copied from a video or server guide can therefore fail even when the setting exists in your game.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →| Environment | Naming style | Examples |
|---|---|---|
| Java Edition 1.21.11 and later | snake_case | keep_inventory, mob_griefing, advance_time, natural_health_regeneration |
| Java Edition 1.21.10 and earlier | Legacy camelCase | keepInventory, mobGriefing, doDaylightCycle |
| Bedrock Edition | Lowercase, no separators | keepinventory, mobgriefing, dodaylightcycle, pvp, showcoordinates |
The Java naming boundary is important: a command that worked in 1.21.10 may need a different rule name after updating to 1.21.11. Bedrock examples are not interchangeable with Java examples. If the game reports an unknown rule, stop and check the live rule list for your exact edition and version rather than trying random combinations of capitals or underscores.
How to change a gamerule safely
- Identify the edition. Confirm whether you are running Java or Bedrock, and note the full version number.
- Make sure you can run commands. In a solo world, enable the world’s command or cheat permission as appropriate. On a multiplayer server, you need the permission level granted by the server owner.
- Back up the world. A backup gives you a recovery point if a rule produces an unexpected gameplay or performance change.
- Use the spelling for that edition. Do not replace Java’s underscores with Bedrock’s compact name, or vice versa.
- Change one rule at a time. This makes it clear which setting caused a change.
- Test the result in the world. Sleep, die, wait for a weather change, or observe a farm depending on the rule you changed.
- Record intentional changes. A short list in your server notes prevents a later administrator from mistaking a deliberate setting for a bug.
To undo a change, run the same command with the opposite Boolean value or restore the previous numeric value. Gamerules do not need a restart in the usual case, although a server administrator may choose to restart after a maintenance change.
The most useful gamerules
These settings cover the requests most players mean when they search for “best Minecraft gamerules.” The Java commands below use the 1.21.11-and-later names supplied for the current naming scheme. Use the edition table above before copying them.
Keep items after death
/gamerule keep_inventory true
This keeps a player’s inventory when they die. The documented default for the legacy Java rule keepInventory is false, meaning normal death loss is enabled. Set it to true for building worlds, family servers or exploration-focused play where recovering a dropped inventory would be a distraction.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Rank #2
- WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
- AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
- PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
- ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
- COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed
On older Java versions use:
/gamerule keepInventory true
On Bedrock use:
/gamerule keepinventory true
Freeze the day-night cycle
/gamerule advance_time false
In Java 1.21.11 and later, advance_time is the current name for stopping normal time progression. Older Java guides commonly show doDaylightCycle:
/gamerule doDaylightCycle false
Bedrock uses the compact form:
/gamerule dodaylightcycle false
Freezing time leaves the current time of day in place. It is useful for a permanently lit build site, a map with a fixed presentation time or a classroom demonstration. It does not, by itself, stop every other world process, so farms and other simulated systems can still require their own settings.
Prevent mobs from changing blocks
/gamerule mob_griefing false
This prevents mob-griefing behavior, such as mobs altering the environment, while leaving ordinary mob spawning and combat as separate concerns. The legacy Java spelling is mobGriefing; Bedrock uses mobgriefing.
Use this when you want creeper explosions or other mob interactions to stop damaging a shared build. Test any farm that relies on a mob placing, picking up or otherwise manipulating blocks, because disabling the rule can change that farm’s behavior.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Repair Windows errors before they cause bigger problems3Scan for outdated or missing drivers - takes under a minuteStop weather from changing
/gamerule advance_weather false
On the current Java naming set, advance_weather is the recommended rule name for stopping automatic weather progression. This is separate from the day-night rule: one controls time and the other controls weather. If your version rejects this name, consult the exact rule list for that version before substituting an older spelling.
Disable phantom spawning
/gamerule spawn_phantoms false
This turns off phantom spawning without requiring a permanent change to the difficulty setting. It suits servers where players build or explore on irregular schedules and do not want missed sleep to create an aerial threat. The rule changes spawning; it does not remove phantoms that are already present.
Rank #3
- Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
- Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
- Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
- ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
- Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
Hide command-block feedback
/gamerule command_block_output false
Set this to false when a command-heavy map or server is filling chat with command-block messages. Keep feedback enabled while debugging a command system so that you can see whether blocks are executing and what errors they report. Bedrock’s compact naming convention is commandblockoutput.
Control natural health regeneration
Java 1.21.11 and later lists the rule as natural_health_regeneration. Because rule availability and names can differ between editions, verify the exact command accepted by your installation before changing it. This setting is distinct from healing supplied by food, potions or commands; do not assume that changing it disables every source of health recovery.
Recommended Free Tools
Random tick speed: crops, fire and performance
randomTickSpeed controls how much random-tick work the game attempts. Random ticks are used by systems such as crop growth and fire spread, so changing the value can make those processes appear faster or slower. Higher values also increase random-tick work and therefore can increase CPU use.
| Edition | Documented default | Practical implication |
|---|---|---|
| Java Edition | 3 | The ordinary Java baseline for random-tick processing. |
| Bedrock Edition | 1 | Bedrock’s documented baseline is lower than Java’s. |
The values above are defaults, not performance guarantees. A large farm, many loaded chunks or a low-powered device can still run poorly at the default, while a powerful system may tolerate a modest increase. Raise the value gradually, observe frame rate and server tick health, and return to the documented default if the world becomes unstable. Do not use an extreme value as a substitute for designing an efficient farm.
Because the exact spelling and accepted range can vary by edition and version, use the command autocomplete or the current rule reference for your installation when setting random tick speed. Keep a note of the original value so you can restore it.
Ready-to-use setting profiles
There is no single “best” configuration. A good profile starts with the experience you want and changes only the rules that support it.
Rank #4
- Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
- Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
- 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
- Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
- USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC
Creative or showcase world
advance_time falseto hold a chosen time of day.advance_weather falseto keep lighting and visibility consistent.mob_griefing falseto protect finished builds from mob damage.keep_inventory trueso experimentation does not require item recovery.spawn_phantoms falsefor uninterrupted construction.command_block_output falseafter command systems have been tested.
Apply the profile one rule at a time. A fixed time and weather can make a map easier to present, but they also remove natural variation, so leave those rules at their defaults if the world is intended to feel like ordinary survival.
Co-operative survival with fewer setbacks
- Set
keep_inventory trueif the group values exploration over death-recovery runs. - Leave time and weather advancing if you want the normal survival rhythm.
- Set
mob_griefing falseonly after checking that no farm depends on mob block interaction. - Disable phantoms with
spawn_phantoms falseif the group does not want sleep schedules to affect play.
This profile changes the cost of mistakes without freezing the world. Discuss the choices with all players before applying them on a shared server.
Technical or command-map testing
- Keep command output enabled while building and debugging.
- Change one gamerule between tests and write down the value.
- Use a temporary random-tick adjustment only for a controlled test, then restore the baseline.
- Freeze time or weather only when deterministic conditions are part of the test.
Separating test settings from the final map prevents a diagnostic convenience from becoming an accidental permanent rule.
Java and Bedrock differences that cause the most errors
| Task | Current Java example | Older Java example | Bedrock example |
|---|---|---|---|
| Keep inventory | keep_inventory |
keepInventory |
keepinventory |
| Mob griefing | mob_griefing |
mobGriefing |
mobgriefing |
| Day-night progression | advance_time |
doDaylightCycle |
dodaylightcycle |
| Command-block output | command_block_output |
Verify the name for your version | commandblockoutput |
| Other Bedrock examples | Not a Java spelling guide | Not a Java spelling guide | pvp, showcoordinates |
The table is a spelling aid, not a complete availability list. Some rules exist in one edition but not the other, and a familiar-looking name does not prove that the rule is supported in your version.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Defaults and uncertain values
Use defaults as a starting point, not as a promise that every edition shares the same behavior. The documented baseline for Java’s legacy keepInventory is false, and the legacy doDaylightCycle default is true. Random tick speed is documented as 3 in Java and 1 in Bedrock.
spawnRadius needs particular care. One guide reports 10 for Java and 5 for Bedrock, while a Minecraft Wiki history note says the default was set to 10 to match Java. Because those statements conflict for Bedrock, do not rely on a remembered number; inspect the value in the exact Bedrock release you are running before planning a spawn area around it.
Best Value
- Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
- Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
- Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
- Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
- Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
Rules and defaults can change with updates. The safest habit is to verify the current name and value in the live Minecraft Wiki or the command’s in-game suggestions for your edition and version, especially after an update.
Troubleshooting gamerule commands
“Unknown or incomplete command”
Check the edition first, then compare the spelling with the version table. In particular, test whether your Java version is 1.21.11 or later, and check every underscore, capital letter and separator. Bedrock’s keepinventory is not the same token as Java’s keep_inventory.
“You do not have permission”
Command access is controlled by the world or server. Enable the appropriate command permission in a solo world or ask the server administrator for the required operator level. A correctly spelled rule still cannot be changed without permission.
The command succeeds but gameplay looks unchanged
Test the specific behavior the rule controls. For example, advance_time false affects time progression, not weather; advance_weather false affects weather progression, not the clock. A rule also may not affect entities or events that were already created before the change, so test with a new event after applying it.
A farm stopped working
Review recent changes, especially mob_griefing and random tick speed. Some designs depend on mob interactions or random ticks. Restore the previous value, test in a copy of the world and then decide whether the rule or the farm design should change.
The server becomes slow after changing random tick speed
Lower the value toward the edition’s documented default, check the number of loaded chunks and test again. Higher random-tick values increase CPU work; they are not a free speed multiplier.
A repeatable verification routine
- Write down the world version, edition and the rule you intend to change.
- Check the exact current name, including its capitalization and separators.
- Read the current value before replacing it, and save that value in your notes.
- Apply the new value with
/gamerule. - Trigger a small, safe test that exercises only that rule.
- Watch for side effects in farms, command systems, mob behavior and server performance.
- Keep the change only if it supports the world’s purpose; otherwise restore the recorded value.
This process is more reliable than copying a large block of commands because it exposes edition mismatches and makes rollback straightforward.
The Bottom Line
Use /gamerule <rule_name> <value>, but verify the rule name against your edition and version first. Java 1.21.11 and later uses snake_case, older Java uses legacy camelCase, and Bedrock uses lowercase names without separators. Start with the small set of rules that supports your intended play style, record the old values, and treat random tick speed and conflicting defaults with particular caution.
Quick Recap
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.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →




