명령어 참조
Minecraft /gamerule Command
world자바 에디션베드락 에디션
게임 규칙(keepInventory, mobGriefing, doDaylightCycle 등)을 설정하거나 확인합니다.
버전 호환성
자바 에디션:1.21.4 (1.13+)
베드락 에디션:1.21.60
명령어 문법
모든 에디션
/gamerule <rule> [<value>]인수 설명
ruleGamerule String필수The name of the gamerule (e.g., keepInventory, doDaylightCycle). Case sensitive!
valueBoolean / IntegerThe setting to apply. Boolean rules take true/false, integer rules take numbers.
실용적인 예시
/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).
중요 참고사항
Be aware that some gamerules are exclusive. E.g. Bedrock has `commandBlocksEnabled` and `showCoordinates`, while Java has `playersSleepingPercentage` and `mobGriefing` behaves slightly differently.