跳到正文

Blastproof

作者:Barenton

A lightweight Fabric mod that prevents explosions from damaging blocks in your server or single-player world.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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

  • Compatibility with Gamerules: Gamerules such as mobGriefing won’t conflict with Blastproof but rather serve as an additional layer of protection.
  • Entity Damage Preservation: Entities still receive damage from explosions; only blocks are protected to prevent griefing.
  • Block Damage Control: Disable block damage from TNT, Creepers, End Crystals, Wither Skulls, Fireballs, Withers, and custom “other” sources.
  • Fire Prevention: Stop explosions from causing wildfires.
  • Auto-Generated Configuration: 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:
    /blastproof disableBlockDamage tnt
  • Toggle options:
    /blastproof disableBlockDamage tnt false
  • Universal Compatibility: 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!

{
  "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
  }
}

常见问题

Blastproof 支持哪些 Minecraft 版本?

Blastproof 支持 Minecraft Java 版 1.21.3–26.3,共 14 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Blastproof 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分