Minecraft /gamerule Commands — Copy & Paste (2026)
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Toggle the rules that shape your whole world: keep inventory, mob griefing, the day/night cycle, fall damage, and more. Every /gamerule command works identically in Java and Bedrock and is one click to copy.
Keep your items when you die instead of dropping them
/gamerule keepInventory trueStop creepers, endermen, and other mobs from changing blocks
/gamerule mobGriefing falseRespawn immediately on death without clicking the button
/gamerule doImmediateRespawn trueEnable the coordinates display on screen
/gamerule showCoordinates trueMake plants grow faster by increasing random tick speed
/gamerule randomTickSpeed 3Stop mobs from spawning naturally in the world
/gamerule doMobSpawning falseStop mined blocks from dropping items
/gamerule doTileDrops falseStop command blocks from printing messages to chat
/gamerule commandBlockOutput falseLet one sleeping player skip the night for the whole world
/gamerule playersSleepingPercentage 1Stop phantoms from spawning when you don't sleep
/gamerule doInsomnia falseControl the size of the spawn protection area
/gamerule spawnRadius 0Stop mobs from dropping items when killed
/gamerule doEntityDrops falseStop taking damage when underwater
/gamerule drowningDamage falseStop taking damage from fire and lava
/gamerule fireDamage falseHide most debug info and only show FPS on the F3 screen
/gamerule reducedDebugInfo true