How to Set Game Rules on Your Minecraft Bedrock Server

Configure game rules on your Minecraft Bedrock Edition dedicated server to control gameplay behavior through the XGamingServer panel.

Here is how to set game rules on your Minecraft Bedrock server. Game rules control core gameplay behavior like mob spawning, PvP, item drops on death, and more.

Requirements

Before changing game rules, you need:

Changing Game Rules

Select Your Server

Log in to the XGamingServer Panel and select your Minecraft Bedrock server.

Open the Console

In the sidebar, go to Console.

Run a Gamerule Command

Type the following command and press Enter:

gamerule <rule> <value>

Replace <rule> with the game rule name and <value> with true, false, or a number depending on the rule.

For example, to enable keep inventory:

gamerule keepInventory true

Common Game Rules

Here is a list of frequently used game rules for Bedrock Edition:

Game RuleValuesDescription
keepInventorytrue / falsePlayers keep items when they die
mobGriefingtrue / falseMobs can destroy or change blocks (creepers, endermen, etc.)
doDaylightCycletrue / falseDay and night cycle progresses
doWeatherCycletrue / falseWeather changes over time
doMobSpawningtrue / falseMobs spawn naturally
pvptrue / falsePlayers can damage each other
showcoordinatestrue / falseShow X, Y, Z coordinates on screen
doFireTicktrue / falseFire spreads to nearby blocks
doImmediateRespawntrue / falseSkip the death screen and respawn instantly
naturalRegenerationtrue / falsePlayers regenerate health when hunger is full
tntExplodestrue / falseTNT blocks can explode
commandBlocksEnabledtrue / falseCommand blocks can execute commands
doInsomniatrue / falsePhantoms spawn when players have not slept
respawnBlocksExplodetrue / falseBeds and respawn anchors explode in wrong dimensions
showDeathMessagestrue / falseDeath messages appear in chat
sendCommandFeedbacktrue / falseCommand output is shown in chat
maxCommandChainLengthnumberMaximum command blocks that can chain (default: 65536)
randomTickSpeednumberSpeed of random block ticks like crop growth (default: 1)
playersSleepingPercentagenumberPercentage of players needed to skip the night (default: 100)

💡 Tip: You can check the current value of any game rule by running gamerule <rule> without a value.

📝 Note: Some game rules like pvp and showcoordinates are Bedrock-exclusive and do not exist on Java Edition.

How is this guide?

40% Off — Limited TimeGet your Minecraft Bedrock server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page