Minecraft /gamerule Command
Define ou verifica regras de jogo (como keepInventory, mobGriefing, doDaylightCycle).
Compatibilidade de Versões
Sintaxe do Comando
/gamerule <rule> [<value>]Argumentos Explicados
ruleGamerule StringObrigatórioThe name of the gamerule (e.g., keepInventory, doDaylightCycle). Case sensitive!
valueBoolean / IntegerThe setting to apply. Boolean rules take true/false, integer rules take numbers.
Exemplos Práticos
/gamerule keepInventory truePrevents players from losing their inventory items when they die.
/gamerule doDaylightCycle falseFreezes the daylight cycle at its current time.
/gamerule randomTickSpeed 100Speeds up block updates (e.g. crop growth, leaf decay) in Java (default is 3).
Notas Importantes
Be aware that some gamerules are exclusive. E.g. Bedrock has `commandBlocksEnabled` and `showCoordinates`, while Java has `playersSleepingPercentage` and `mobGriefing` behaves slightly differently.
Pronto para criar seu comando?
Use nosso gerador interativo para criar comandos /gamerule sem erros com uma interface visual.
Abrir Gerador de Comandos