1

Please I need help with some creeper issues on my private survival server. I want creepers to be exactly normal but one thing. They can't blow up grass and dirt. Everything else they should be able to destroy except grass and dirt.

2
  • Vanilla servers doesn't provide such functionnality. I don't think anyone ever made a mod/plugin allowing such control on creeper explosions, it's mostly everything or nothing.
    – Hybris95
    Commented Mar 2, 2015 at 14:38
  • Sadly @Hybris95 is correct. There is no functionality for what you are requesting at the moment. Commented Mar 2, 2015 at 14:49

4 Answers 4

9

A little trick with command blocks would help in this case:

Setup:

/scoreboard objectives add noFuse dummy
/scoreboard objectives add Teleport dummy

Clock:

/execute @e[type=ArmorStand,score_Teleport_min=1] clone ~10 200 ~10 ~-10 190 ~-10 ~10 ~10 ~10 filtered normal minecraft:dirt
/execute @e[type=ArmorStand,score_Teleport_min=1] clone ~10 200 ~10 ~-10 190 ~-10 ~10 ~10 ~10 filtered normal minecraft:grass
/execute @e[type=ArmorStand,score_Teleport_min=1] fill ~10 200 ~10 ~-10 190 ~-10 minecraft:air
/kill @e[type=ArmorStand,score_Teleport_min=1]
/scoreboard players set @e[type=Creeper] noFuse 0
/scoreboard players set @e[type=Creeper] noFuse 1 {Fuse:0}
/execute @e[score_noFuse_min=1] clone ~10 ~10 ~10 ~-10 ~-10 ~-10 ~10 200 ~10
/execute @e[score_noFuse_min=1] summon ArmorStand ~ ~ ~ {CustomName:"Teleport",CustomNameVisible:0}
/scoreboard players set @e[type=ArmorStand] Teleport 0
/scoreboard players set @e[type=ArmorStand] Teleport 1 {CustomName:"Teleport"}

First it finds all creepers that are about to explode, then clones the area around it into the sky, then after it explodes the dirt and the grass will be cloned down and the area in the sky will be deleted.

2
  • 1
    This is very creative and clever.
    – Gigazelle
    Commented Mar 3, 2015 at 7:30
  • 1
    BTW this will allow blocks behind the grass/dirt to be destroyed
    – Moddl
    Commented Mar 4, 2015 at 0:33
4

Global Answer :

Vanilla servers doesn't provide such functionnality.
I don't think anyone ever made a mod/plugin allowing such control on creeper explosions, it's mostly everything or nothing.

Multiplayer :

If you are searching for such kind of Plugin, WorldGuard provides similar functionalities, you just can't filter on specific block's IDs.

SinglePlayer :

As Gilbert V stated, you can use /gamerule mobGriefing false. Like with WorldGuard you can't filter on specific blocks also.

2
  • 3
    The mobGriefing gamerule isn't just singleplayer. Commented Mar 2, 2015 at 19:19
  • Did I said so ? I just pointed out a tool that can do it in Multiplayer never intended to be exhaustive.
    – Hybris95
    Commented Mar 3, 2015 at 9:59
2

There exists a server plugin called CreeperHeal which is useful for this. Creepers still destroy things with this plugin installed. However, the terrain will regenerate after a short period. Also useful against griefers.

1
/gamerule mobGriefing false

End result: creepers damage players but not blocks. This may not be exactly it is the closest i can think of for what you are after.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .