How to do it
- Check the edition and version on your Minecraft title screen. This tool supports Java Edition.
- Enable cheats in your world or obtain operator permissions on your server.
- Choose your version below, copy the command, and paste it into chat using T.
Java 1.21.4 example
/gamerule mobGriefing false
Java 26.3 example (new format)
/gamerule minecraft:mob_griefing false
How to undo
/gamerule mobGriefing true
Stops creepers and ghasts from breaking blocks and endermen from picking them up. Note: when disabled, villagers also stop harvesting crops and picking up food to breed.
Other releases, apart from the listed releases, may use different syntax. The interactive form only generates commands for the selected supported version.