Last updated: July 23, 2026
This guide shows you how to change Minecraft Java Edition game rules through World Manager, the NolimitHost console, or in-game chat.
A game rule is a world setting that controls a specific behavior, such as whether players keep their inventory after death. Use gamerule to change world mechanics without restarting the Java server. Game rule names are case-sensitive.
Start the server, then open the Console in the NolimitHost Game Panel (log in at https://game.nolimit.host/ and select your server first) and enter the command without /:
gamerule keepInventory true
Join as an operator (an operator, or OP, is a player with admin powers), open chat, and include /:
/gamerule keepInventory true
Use this format for another rule:
gamerule <rule> <value>
| Rule | Value | What it controls |
|---|---|---|
keepInventory | true or false | Whether players retain inventory and experience after death. |
mobGriefing | true or false | Whether mobs can change blocks or collect items. |
doFireTick | true or false | Whether fire spreads and extinguishes naturally. |
playersSleepingPercentage | Percentage | Players required to sleep before skipping the night. |
randomTickSpeed | Number | Frequency of random block ticks. |
doMobSpawning | true or false | Whether mobs spawn naturally. |
doDaylightCycle | true or false | Whether time and moon phases advance. |
doWeatherCycle | true or false | Whether weather changes naturally. |
showDeathMessages | true or false | Whether death messages appear in chat. |
commandBlockOutput | true or false | Whether command-block output is sent to operators. |
Enter a rule without a value:
gamerule keepInventory