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

For a server where players want less punishment after death, enable keepInventory; for a world where creepers and similar mobs should not alter blocks, disable mobGriefing; and for a server where command-block messages should not clutter the console, disable commandBlockOutput. The exact gamerule spelling depends on Minecraft edition and version, so check the rules available on your running server before applying a command.

Choose gamerules for the kind of server you run

There is no universal best set of gamerules. A rule that makes a cooperative building world more relaxed may remove a challenge that a survival group wants to keep. Start with the experience you are trying to create, change only the rules that support it, and check the result in the live world.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Gamerule What the available evidence establishes Consider changing it when Example command
keepInventory / keep_inventory Keeps player items after death. Your group prefers not to lose items on death. /gamerule keep_inventory true on a recent Java version, if that exact name is available.
mobGriefing / mob_griefing Controls whether creepers, ghasts, and similar mobs change blocks. You want to prevent those mobs from altering blocks. /gamerule mob_griefing false on a recent Java version, if that exact name is available.
commandBlockOutput Controls whether command block output is sent to the console. You want to suppress command-block output in the console. /gamerule commandBlockOutput false, if that exact name is available.
doMobSpawning It is a commonly considered rule, but the available sources did not confirm its behavior. Do not change it based on an assumption; check the in-game description or a version-specific authoritative reference first. No command recommended here.

The table is a use-case guide, not a measured ranking. Gamerule availability, spelling, and effects can depend on edition and version; a name in an example is not proof that your server accepts that spelling.

Check the rule names and current values first

Java gamerule names have a version-related spelling caveat. Older Java material uses camelCase forms such as keepInventory and mobGriefing. Recent Java versions use snake_case forms such as keep_inventory and mob_griefing. The precise version boundary is not established consistently in the available sources, and it is not established whether newer builds still accept the older aliases. Bedrock is reported to use the lowercase form keepinventory for the inventory rule. Do not assume the same spelling works across Java and Bedrock.

#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:Upgraded 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.
  • Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.
  1. Open a command-capable session. On a server, send the command through the server console or as an operator in-game. Cheats must be enabled for the sender, or the sender must have operator permissions on the server.
  2. Ask the running server which rules it recognizes. Enter /gamerule and use the Tab key to list available rules. Use the name presented by that server rather than copying a spelling from a guide written for a different release.
  3. Query the setting before changing it. Use the recognized rule name without a value—for example, /gamerule keep_inventory—to display its current setting. If that spelling is not accepted, check the server’s listed names and try the version-appropriate form.
  4. Set the value only after confirming the name. Gamerule syntax is /gamerule <rule name> [value]. Java command arguments are case-sensitive, so preserve the spelling and capitalization shown by the server.
  5. Query it again. Run the rule command without a value after changing it to confirm the value the server reports. This verifies the setting, not whether every gameplay consequence matches your group’s expectations.

For version uncertainty, the in-server list is the practical first check: it reflects the rules exposed by the server you are actually administering. If a command fails, do not repeatedly guess capitalization or assume a rule was renamed in a particular update. Check the server version and edition, use the listed spelling, and make sure the command sender has the required permissions.

Keep player items after death with keepInventory

When it fits

Set the inventory rule to true when the server’s priority is avoiding item loss on death. This can suit a cooperative group that values building or exploration more than recovering dropped belongings. It changes the consequence of death, so it is a poor fit if losing carried items is an intentional part of the server’s challenge.

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.
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

Set and verify it

For a recent Java server that lists the snake_case name, use:

/gamerule keep_inventory true

For an older Java server using the camelCase name, use:

Rank #3
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black
  • 【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.
/gamerule keepInventory true

For Bedrock, the reported form is:

/gamerule keepinventory true

Use only the spelling your server recognizes. Then query the same rule without a value and confirm that it reports true. The sources available here do not settle whether older Java spellings continue to work as aliases on newer versions, so do not rely on backward compatibility.

Stop certain mobs from changing blocks with mobGriefing

When it fits

Set the mob-griefing rule to false when you want to prevent creepers, ghasts, and similar mobs from changing blocks. This addresses block alteration by those mobs; it is not a general statement that hostile mobs cannot appear or that all mob-related effects stop. If your server depends on mob interactions with the environment, consider how that rule fits the world before changing it.

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.

Set and verify it

For a recent Java server that lists the snake_case name, use:

/gamerule mob_griefing false

For an older Java server using the camelCase name, use:

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.
/gamerule mobGriefing false

Query the recognized rule afterward to check the server reports false. If the command is rejected, return to the server’s rule list and use the exact name it displays rather than assuming the rule is missing or that another edition’s syntax applies.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Reduce command-block output sent to the console

When it fits

The commandBlockOutput rule controls whether command block output is sent to the console. Set it to false if suppressing that output is the goal. The available information does not establish a default value, so check the current value on your server rather than assuming the rule starts enabled.

Set and verify it

If your server recognizes the name below, enter:

/gamerule commandBlockOutput false

Then query the rule without a value and confirm the reported setting. Keep the exact capitalization accepted by your server; Java arguments are case-sensitive.

Be cautious with doMobSpawning

doMobSpawning is often raised as a candidate when an administrator wants to affect hostile-mob spawning. However, the available source review did not confirm what the rule does or establish its scope, so this guide does not recommend setting it to false as a verified way to stop hostile spawns. Check the in-game description or a reliable, version-specific reference before changing it, and do not infer its behavior from the rule name alone.

Troubleshoot a gamerule command that does not work

  • Unknown or invalid rule: Check the edition and version, then use /gamerule plus Tab to find the accepted spelling on that server. Java naming has shifted between camelCase and snake_case in recent-version material.
  • Command is unavailable: The sender needs cheats enabled or operator status on a server. Try the server console or have an operator run the command.
  • Command appears accepted, but the outcome is unexpected: Query the rule without a value to confirm the stored setting. Then check that the selected rule addresses the effect you intended; for example, the mob-griefing rule concerns blocks changed by certain mobs, not a verified setting for stopping mob spawns.
  • Unsure whether a change took effect: Use the recognized rule name with no value to read the current setting. Do not treat a successful command response as confirmation of a broader gameplay effect than the rule is known to control.

A simple selection process for server admins

  1. Decide what you want to change for players: item loss after death, block damage or alteration by certain mobs, or command-block output sent to the console.
  2. Match that outcome to the corresponding rule above rather than changing several settings at once.
  3. Check the available rule names and current value on the server itself.
  4. Change one setting, then query it to confirm the stored value.
  5. Ask players or observe the relevant situation in the world to decide whether the change supports the server’s intended style. Revise the rule if it does not.

This approach keeps a useful distinction between a confirmed setting and a desired result: the command can verify the first, while the group still needs to decide whether that rule is right for its world.

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.

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.