
exploding grass blocks
When grass is mined by any player, the grass will explode. This will happen unless the grass block is mined by any silk touch tool.
00—fabricBoth1.19.2mod
Exploding Grass Blocks adds a simple rule: breaking a grass block without Silk Touch causes an explosion at that block. Breaking with any Silk Touch tool lets you harvest safely.
Key implementation points:
- Uses Fabric's
PlayerBlockBreakEvents.AFTERto listen for player-driven block breaks server-side only. - Triggers only on
grass_blockstates; checks the main-hand tool for Silk Touch before acting. - Explosions are centered on the block (strength 3.0) and attribute the breaking player as the source so damage is credited appropriately.
Usage:
- Targeted for Fabric Loader/Fabric API on Minecraft 1.19.2. Drop the jar into your
modsfolder on both client and server. - No config options are provided; the behavior is always on once the mod is loaded.
Known notes:
- Explosions still occur in creative if you break grass without Silk Touch.
- Plants like tall grass are unaffected; only the grass block itself triggers the explosion.