Minecraft Gamerule Command Generator

Gamerules are world switches, and the usual mistake is the value type: keepInventory takes true or false while randomTickSpeed takes an integer, and a mistyped rule name fails without much feedback. Pick the rule here and the generator constrains the value to what that rule accepts.

  • keepInventory, mobGriefing, doDaylightCycle, doMobSpawning and randomTickSpeed
  • Boolean and integer value handling per rule
  • Version-aware output for Java and Bedrock