How can I stop creeper griefing without changing the gamerule?
//ads -- adsterra.com -- native banner
?>
I play on a server without mods and I want to use villagers to automatically farm crops. We play with mobgriefing off so the farm won't work.
How can I allow mob griefing for the villagers but not for creepers?
Best Answer
Here is what worked with some tests on a vanilla server and in single player. Place this in a command block and run it on a clock. This creeper does not do player or block damage.
/entitydata @e[type=Creeper] {ExplosionRadius:0}
Pictures about "How can I stop creeper griefing without changing the gamerule?"



How do I turn off creeper griefing?
How to stop Creepers and Endermen from breaking blocks in...How do you stop creepers blowing up blocks?
In Minecraft Java Edition, all players will need to do is open their chat console in-game and type "/gamerule mobGriefing false" to disable griefing from all mobs in the game world. This will only work in a single-player world or a multiplayer world where the player has the appropriate privileges enabled.How do you disable grief in Minecraft?
One solution would be to turn mobGriefing to false , using the command /gamerule mobGriefing false . This will prevent creeper explosions from damaging blocks, but they still hurt players and it also keeps ghasts, whithers, and endermen from damaging blocks.Minecraft 1.12: Disable Creeper Explosions (Without Gamerule) Tutorial
More answers regarding how can I stop creeper griefing without changing the gamerule?
Answer 2
Creepers will stay away from ocelots. So station ocelots (on leash) around your area
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Anete Lusina, Brett Sayles, Brett Sayles, Brett Sayles
