Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets or queries a game rule value. See more in the Popular Commands documentation.
| Permission Level | Game Directors |
|---|---|
| Requires Cheats? | No |
Usage
Check game rule
/gamerule
Check the current game rule.
Set game rule, Boolean
/gamerule playerwaypoints <value: playerwaypointsValues>
Set a gamerule using a Boolean.
/gamerule <rule: BoolGameRule> [value: Boolean]
/gamerule <rule: IntGameRule> [value: int]
Arguments
rule: BoolGameRule Boolean game rule settingrule: IntGameRule Integer game rule settingvalue: playerwaypointsValuesvalue: Boolean Boolean valuevalue: int Integer value
Enums
BoolGameRule
Must be true or false.
Values
commandblockoutputcontrols whether the command examples send an output to chatdodaylightcyclecontrols whether the day cycle movesdoentitydropscontrols whether entities do dropsdofiretickcontrols whether fire spreads or notrecipesunlockcontrols whether built-in (vanilla) recipes automatically unlock as the player progresses through the game (one alternative to this is to use the /recipe command based on custom gameplay logic.)dolimitedcraftingDetermines whether players should be able to craft only those recipes that they've unlocked first - when dolimitedcrafting is set to truedomoblootcontrols whether mobs drop lootdomobspawningcontrols whether mobs spawn into the gamedotiledropscontrols whether tiles dropdoweathercyclecontrols whether the weather is enableddrowningdamagecontrols whether entities take damage from drowningfalldamagecontrols whether entities take damage from fallingfiredamagecontrols whether entities take damage from firekeepinventorycontrols whether players keep their inventory when they diemobgriefingcontrols whether mob griefing can happen in the worldpvpcontrols whether players can damage each othershowcoordinatescontrols whether coordinates are displayedshowdaysplayednaturalregenerationcontrols whether players can regenerate healthtntexplodescontrols whether TNT can explodesendcommandfeedbackcontrols whether command feedback is displayeddoinsomniacontrols whether players deal with the effects of not sleeping (such as phantoms)commandblocksenabledcontrols whether command blocks can work in the world or notdoimmediaterespawncontrols whether players immediately respawn or have to choose to do soshowdeathmessagescontrols whether death notices are displayedshowtagscontrols whether tags are shownfreezedamagecontrols whether there is damage from freezing or notrespawnblocksexplodecontrols whether respawn blocks explodeshowbordereffectcontrols whether border effects are shownshowrecipemessagesConfigures if standard player notifications for recipes will show. When set to false, "player unlocked recipes" are no longer sent as player notificationsprojectilescanbreakblocksDefines if projectiles (entities with a projectile component, like Arrows, thrown Tridents or Fireworks) can destroy certain blocks that support this interaction (such as Chorus Fruit, Dripstone or Decorated Pots). Restrictions on which projectiles can destroy certain blocks applytntexplosiondropdecay
IntGameRule
An integer to replace the following default values.
1 for the DEFAULT_RANDOMTICKSPEED.
4096 for the MAX_RANDOMTICKSPEED.
10000 for the MAX_FUNCTIONCOMMANDLIMIT.
5 for the DEFAULT_PLAYER_SPAWN_RADIUS.
0 for the MIN_PLAYER_SPAWN_RADIUS.
128 for the MAX_PLAYER_SPAWN_RADIUS.
Values
maxcommandchainlengthMax Command Chain LengthrandomtickspeedRandom Tick SpeedfunctioncommandlimitFunction Command LimitspawnradiusSpawn Radiusplayerssleepingpercentage
playerwaypointsValues
Values
everyoneoff