/gamerule Command in Minecraft Bedrock Edition

Set or Query Game Rules in Minecraft Bedrock

Bedrock EditionWorld & BlocksPermission: Game DirectorsCheats: NoJava version →

The /gamerule command in Minecraft Bedrock Edition lets you check or change the value of a game rule in your world. Game rules control different settings using either boolean values or integer numbers.

Players and server administrators with the Game Directors permission level use this command to customize how their world works. Unlike many other commands, /gamerule does not require cheats to be enabled in the world settings.

Syntax (2 forms)

  1. /gamerule

    Check game rule

  2. /gamerule playerwaypoints <value: playerwaypointsValues>

    Set game rule, Boolean

Arguments

ArgumentTypeWhat it means
ruleBoolGameRuleBoolean game rule setting
ruleIntGameRuleInteger game rule setting
valueplayerwaypointsValues- `value`: Boolean Boolean value
valueintInteger value

Examples

Tips

Common mistakes

Bedrock vs Java

Java Edition also includes the /gamerule command, where it uses rule names like /gamerule advance_time [<value>], /gamerule advance_weather [<value>], /gamerule allow_entering_nether_using_portals [<value>], and /gamerule block_drops [<value>].

See /gamerule in Java Edition →

FAQ

Do I need cheats enabled to use /gamerule in Bedrock Edition?

No, the /gamerule command does not require cheats to be enabled, though you do need the Game Directors permission level to run it.

How do I check a game rule without changing it?

You can type /gamerule by itself or leave off the optional value at the end of the command to query the current setting.

What types of values does /gamerule accept?

Depending on the rule you choose, the command accepts either a boolean value or an integer value.

Related commands

/clone/daylock/difficulty/fill/fog/locate/mobevent/place/setblock/setworldspawn/structure/tickingarea/time/weather