Set or Query Game Rules in Minecraft Bedrock
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.
/gameruleCheck game rule
/gamerule playerwaypoints <value: playerwaypointsValues>Set game rule, Boolean
| Argument | Type | What it means |
|---|---|---|
rule | BoolGameRule | Boolean game rule setting |
rule | IntGameRule | Integer game rule setting |
value | playerwaypointsValues | - `value`: Boolean Boolean value |
value | int | Integer value |
/gameruleLists and checks the current game rules active in your world.
/gamerule playerwaypointsChecks the current boolean value of the playerwaypoints game rule without changing it.
/gamerule playerwaypoints trueEnables the playerwaypoints game rule by setting its boolean value to true.
/gamerule playerwaypoints falseDisables the playerwaypoints game rule by setting its boolean value to false.
/gamerule <rule: boolgamerule> trueTurns on a chosen boolean game rule using the true value.
/gamerule <rule: boolgamerule> falseTurns off a chosen boolean game rule using the false value.
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>].
No, the /gamerule command does not require cheats to be enabled, though you do need the Game Directors permission level to run it.
You can type /gamerule by itself or leave off the optional value at the end of the command to query the current setting.
Depending on the rule you choose, the command accepts either a boolean value or an integer value.
/clone/daylock/difficulty/fill/fog/locate/mobevent/place/setblock/setworldspawn/structure/tickingarea/time/weather