/gamerule

Sets or queries a game rule value.

Operator (cheats on)Checked on 1.26.66.1

Open the gamerule command generator →

Syntax

Exactly as the game prints it. <angle brackets> are required, [square brackets] are optional.

/gamerule
/gamerule <rule: BoolGameRule> [value: Boolean]
/gamerule <rule: IntGameRule> [value: int]
/gamerule locatorbar [value: Boolean]
/gamerule playerwaypoints <value: playerwaypointsValues>

Accepted values

BoolGameRule

commandblockoutputdodaylightcycledoentitydropsdofiretickrecipesunlockdolimitedcraftingdomoblootdomobspawningdotiledropsdoweathercycledrowningdamagefalldamagefiredamagekeepinventorymobgriefingpvpshowcoordinatesshowdaysplayednaturalregenerationtntexplodessendcommandfeedbackdoinsomniacommandblocksenableddoimmediaterespawnshowdeathmessagesshowtagsfreezedamagerespawnblocksexplodeshowbordereffectshowrecipemessagesprojectilescanbreakblockstntexplosiondropdecay

Boolean

truefalse

IntGameRule

maxcommandchainlengthrandomtickspeedfunctioncommandlimitspawnradiusplayerssleepingpercentage

playerwaypointsValues

everyoneoff

More from 9Minecraft

Command reference © 2026 9Minecraft.net. Syntax read from Minecraft Bedrock Edition 1.26.66.1.