- Native Minecraft Version:
- Tested Minecraft Versions:
- Source Code:
- https://github.com/survival-rocks/CreepersTrimGrassCreepers Trim Grass
Creepers will turn grass blocks into dirt, instead of breaking the blocks.
Requires Spigot 1.17 or newer!
Support on Discord
With this plugin, when a creeper explodes above grass blocks, it will not break the blocks, but instead turn grass blocks into dirt and coarse dirt. It will also break snow, flowers and crops. This is all configurable, however.
The graphic explains it all!
The config is highly configurable, too!
It has been around on my server since 2015. If you want to check it out, check out my survival server on the address: survival.rocks! It all started with this Skript, from that time:Code (YAML):# Disable entities that aren't mobs--like item frames and armor stands--to take damage of
# explosions from creepers. So, disable damage done by creeper explosions to those.
# Set values down here to what you want the global default to be for the section
# 'creeperTransformBlocks'. You can change the value per block, but these will be the
# default, and are able to be overridden by adding it to the block section you don't
# want the default value to count for.
# Enable creeper block modification under sea level only, which is below Y-level 64.
# If 'false', it will also take effect above the ground. That's usually fine.
# Disable creeper block modification in GriefPrevention claims. Note that, down the
# config, it will be overridden for some blocks where it is set to 'true'.
# Disable creeper block transformations by creeper explosions in WorldGuard regions.
# Admin claims of GriefPrevention also count as regions.
# Blocks that should be affected (transformed) by creeper explosions are defined down here.
# For example:
# - STONE: is a block, so this is triggered when a stone block explodes
# - TRIMMABLE: is not a block, so its block-list is defined down the config
# All allowed materials: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
# If an invalid Material is used, its block-list must be defined at 'blockDefinitions'.
# Not a Material ('TRIMMABLE'), so its blocks are defined at 'blockDefinitions' down
# the config. In this case, it's: GRASS_BLOCK and MYCELIUM. What to do with these
# blocks when a creeper explosion effects these blocks?
# Convert the affected blocks (in this case GRASS_BLOCK and MYCELIUM) into ...
# The affected block by the explosion will be converted to ...
COARSE_DIRT: 0.08 # 8% coarse dirt
DIRT: 0.92 # and 92% dirt
# This is a Material (STONE), so it is not defined down the config.
# This value was already defined at 'defaultValues', and default set to 'false', but we
# want to override it for this block and only have it under sea level for STONE.
# All snow layers will be broken (particle effects play) and set to AIR.
# Override this value from its default (false), and set it to not break leaves by
# creeper explosions in GriefPrevention claims.
# The exploded block will be converted to 20% air and 80% stay intact.
# The definitions for non-existing blocks used above: like LEAVES, GRASSES, FLOWERS.
Code (Text):on explosion:
loop blocks in radius 3 around event-location:
if loop-block is grass:
chance of 90%
set loop-block to dirt
Do not ask for support in the review section!
Join the support Discord server instead: https://discord.gg/fVwCETj
Creepers will turn grass blocks into dirt, instead of breaking the blocks. Highly configurable!