How to Use Game Rules in Minecraft

We have a video tutorial on how to use game rules in Minecraft:


Game rules allow you to alter or modify the gameplay of your Minecraft server without using any mods or plugins. Game rules are an extended set of configuration options available by default and can be used both in single player and multiplayer/servers.

Some examples of functions you can change with game rules include freezing the weather or time cycles, mobs dropping items when they die, players keeping the items in their inventory when they die, preventing creepers and endermen from griefing, and more.

NOTE: You must be a server operator (OP) to be able to use the /gamerule command. If you are not yet an operator, check out our tutorial here: Giving Operator (OP) to a Player

Using the command /gamerule will display a list of game rules you can modify.

Check out some of the useful game rules listed below, what they do, and the commands to enable or disable these:

announceAdvancements Enable or disable announcement of player achievements in-game. /gamerule announceAdvancements <true|false>
doDaylightCycle Enable or disable the day and night cycle, and moon phases. /gamerule doDaylightCycle <true|false>
doMobSpawning Enable or disable spawning of mobs in the worlds. /gamerule doMobSpawning <true|false>
doWeatherCycle Enable or disable the weather cycle and changes in Minecraft. /gamerule doWeatherCycle <true|false>
keepInventory Enable or disable keeping of items in players' inventories when they die. /gamerule keepInventory <true|false>

Enable or disable ability of mobs to change the world and pick items up.

/gamerule mobGriefing <true|false>
pvp Enable or disable ability of players to fight against or hit other players. /gamerule pvp <true|false>
showDeathMessages Enable or disable death messages from being show on the chat. This also affects messages shown to a player when their pet dies. /gamerule showDeathMessages <true|false>
tntexplodes Enable or disable TNT explosions. /gamerule tntexplodes <true|false>


You can find more information as well as a complete list of game rules on the Minecraft Wiki website.

If you require any further assistance, please contact our support at:

Mitchell Smith

Managing Director @ Shockbyte

  • game rules, game rule, commands, op
  • 26 Users Found This Useful
Was this answer helpful?

Related Articles

How to Configure Autosaving of Your Minecraft World

Minecraft servers have the ability to automatically save world data periodically. By default,...

How to Disable Player Advancement Announcements

Advancement is a feature available exclusively on Minecraft Java Edition wherein players can...

How to Download Your Minecraft Server World

We have a video tutorial on downloading your Minecraft server world: If you want to use your...

How to Modify Spigot Configuration (spigot.yml)

The Spigot Config file has many options and settings that can be modified to change the behavior...

How to Reset The Nether on Your Minecraft Server

With the drastic change to the nether in the latest 1.16 update, many players may want to reset...