Blastproof
A lightweight Fabric mod that prevents explosions from damaging blocks in your server or single-player world.
Blastproof
Blastproof
Easily prevent explosions from damaging blocks or starting fires in your Fabric server or single-player world.
Blastproof ensures explosions from TNT, creepers, end crystals, and other sources won't damage your hard work. Whether you're building cities or simply protecting your creations, Blastproof helps maintain the integrity of your world.
---
💡 Why I Created Blastproof
> I developed Blastproof because I wanted to run a modded Fabric server but couldn't find an up-to-date mod to disable block damage from blocks not covered through vanilla gamerules (beds, respawn anchors, etc.), which can potentially ruin builds in the overworld. I also wanted to have TNT enabled (normally disabled with the `tntExplodes` gamerule set to `false`), but didn't want to break anything! Blastproof addresses this gap, providing easy control over explosion damage and fire creation. This mod is ideal for players who want to preserve all features that `mobGriefing false` disables (such as endermen picking up blocks), but still prevent explosions from damaging builds.
🚀 Features
* In-Game Commands: Gamerules such as `mobGriefing` won't conflict with Blastproof but rather serve as an additional layer of protection. * In-Game Commands: Entities still receive damage from explosions; only blocks are protected to prevent griefing. * In-Game Commands: Disable block damage from TNT, Creepers, End Crystals, Wither Skulls, Fireballs, Withers, and custom "other" sources. * In-Game Commands: Stop explosions from causing wildfires. * In-Game Commands: A user-friendly config file is created on the first run at `config/blastproof.json` with blastproofed default settings. * In-Game Commands: Use `/blastproof` to easily:
* Check settings:
```mc /blastproof disableBlockDamage tnt ``` * Toggle options:
```mc /blastproof disableBlockDamage tnt false ``` * Lightweight: Works seamlessly on both dedicated servers and integrated single-player worlds. * Lightweight: Less than 20 KB with no additional dependencies (besides Fabric API).
📝 Disclaimer
This is my first Minecraft mod, Java project, and GitHub repository. As such, certain aspects of the repository and files might not be perfect, and I'm open to suggestions and improvements!
---
⚙️ Configuration
After your first launch, edit `config/blastproof.json` to adjust settings. Note: The `other` flag will override the `respawn_anchor` and `bed` flags!
```jsonc { "disableBlockDamage": { "tnt": true, "creeper": true, "end_crystal": true, "fireball": true, "wither": true, "wither_skull": true, "respawn_anchor": true, "bed": true, "other": true }, "disableFireCreation": { "respawn_anchor": true, "bed": true, "other": true } } ```