Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Tags
Creators
Details
Block Durability
Give Minecraft blocks durability, allowing gunfire and explosions to gradually break them.

🎛️ In-Game Visual Management Center (New in v2.1.0)
No more editing .toml files by hand! Type /bd config or press the Config button in your mod list to open an intuitive, Advanced XRay-inspired management hub directly inside Minecraft:

- ✋ One-Click Handheld Block: Hold any block in your main hand and click to instantly add it to the destruction whitelist.
- 👁️ One-Click Looked-At Block: Aim your crosshair at any block in the world and capture it immediately.
- 🔍 Global Block Browser: Browse through thousands of blocks with live 3D item icons and fuzzy search by localized name or ID.
- ⚡ Real-Time Auto-Save: Any additions, deletions, or slider toggles (Bullet Damage mode, Hardness Multiplier, Auto-Heal time) are immediately written to disk. Rejoining worlds or restarting the game will never lose your changes!
- ⚠️ Note on Per-Block HP: The GUI calculates block HP dynamically via
Hardness × Hardness Multiplier. Direct per-block HP custom input in the GUI is currently not supported. If you need to set a fixed custom HP for specific blocks (e.g.minecraft:obsidian=50.0), configureblockHPOverridesinconfig/blockdurability-common.toml. Per-block visual editing is planned for a future update.
Demos
RPG

Create Cannon

3x3 High Explosive

Explosion Spray

🔫 Realistic Bullet Power vs. Fixed Damage
You can toggle between two damage calculation modes on the fly via the GUI or config:
- Realistic Bullet Damage (
useBulletDamage = true):- Damage scales directly with the kinetic energy of TaCZ firearms.
- Heavy anti-materiel sniper rifles punch through walls in fewer shots, while pistols gradually chip away health.
- Fixed Damage (
useBulletDamage = false):- Every bullet deals a fixed amount of durability damage (
damagePerHit), ideal for PvP competitive balance.
- Every bullet deals a fixed amount of durability damage (
💥 Explosion Durability
Block Durability connects explosion shockwaves directly to block health. Whitelisted blocks take durability damage based on distance, visibly crack, and eventually break.
- TaCZ explosions: RPGs, high-explosive grenades, and artillery shells deal radial, distance-attenuated durability damage to whitelisted blocks in range (including explosions that normally leave terrain unchanged).
- Vanilla and other mod explosions: TNT and Creepers maintain their original direct-destruction behavior. Whitelisted blocks surviving the initial explosion continue taking distance-based durability damage.
- Cover & Obstruction: Solid collision blocks between an explosion and a target block effectively shield and absorb durability shockwaves.
- Configurable: Explosion damage multiplier, scan radius, vanilla-explosion compatibility, block whitelist, and HP calculations are fully configurable.
Only whitelisted blocks are affected. The final result depends on block hardness, HP overrides, explosion position, and the configured damage multiplier.
🧱 Obsidian Can Be Destroyed
Obsidian does not need to be assigned an arbitrary fixed HP value. Its HP is calculated automatically from its vanilla hardness:
Block HP = max(minBlockHP, vanilla hardness × hardnessMultiplier)
Obsidian has a vanilla hardness of 50. With hardnessMultiplier = 3.0, its calculated HP is:
max(1.0, 50 × 3.0) = 150 HP
At 150 HP, it takes roughly 20 to 30 Create cannon high-explosive shells or repeated heavy sniper fire to break obsidian. The multiplier applies to all other blocks as well, allowing you to fine-tune server or modpack balance effortlessly.
📦 Dependencies & Compatibility
| Minecraft | Loader | Compatible TaCZ | Notes |
|---|---|---|---|
| 1.21.1 | NeoForge (21.1.80+) | TaCZ 1.2.0+ (Official Release) | Main active development branch |
| 1.20.1 | Forge (47.1.0+) | TaCZ 1.0.x / 1.1.x / 1.2.0 | Long-term support branch |
💡 Notice: TaCZ is an optional dependency. When TaCZ is installed, bullet hits and gun explosions interact with the durability system. Without TaCZ, Block Durability continues to work seamlessly with vanilla TNT, Creepers, and other mod explosions!
✨ Features Summary
- In-Game GUI: Press
/bd configto manage whitelists, adjust multipliers, and toggle bullet power in real time. - Whitelist Matching: Full support for block tags (e.g.
tag:minecraft:planks,tag:c:glass_blocks), exact IDs (minecraft:end_stone), and wildcards (minecraft:*glass*). - Dynamic Hardness Formula: Block HP calculated from vanilla destroy speed, with optional per-block overrides.
- Visual Cracking Stages: Displays authentic 0~9 progressive crack stages, particle bursts, and block hit/break sound effects.
- 120s Auto-Healing: Damaged blocks clear cracks and recover HP after 120 seconds of inactivity (adjustable via
/gamerule blockDurabilityHealSeconds <seconds>).
⚙️ Configuration
The config file is located at config/blockdurability-common.toml (auto-updated when modified via the in-game GUI):
[general]
enabled = true # Master switch to enable or disable the durability system
useBulletDamage = false # Whether to use TaCZ bullet kinetic energy (true: real damage; false: fixed)
damagePerHit = 1.0 # Durability damage dealt per bullet in fixed mode
bulletDamageMultiplier = 1.0 # Multiplier applied when useBulletDamage is true
healTimeoutSeconds = 120 # Inactivity seconds before damaged blocks heal (0 to disable)
[hp_calculation]
hardnessMultiplier = 1.5 # Formula: Block HP = vanilla hardness * multiplier
minBlockHP = 1.0 # Minimum HP clamp for any breakable block
# Per-block HP overrides (takes priority over hardness formula; format: "modid:block_id=hp", supports wildcards)
blockHPOverrides = [
"minecraft:obsidian=50.0",
"minecraft:*glass*=1.0"
]
[explosion]
enabled = true # Enable radial durability damage from explosions
damageMultiplier = 1.0 # Damage multiplier for explosion shockwaves
maxRadius = 16.0 # Maximum explosion scan radius (safety clamp)
handleVanillaExplosions = true # Handle TNT and Creeper explosions
[effects]
spawnBreakParticles = true # Spawn block break particles when hit
playBreakSound = true # Play block hit and break sound effects
dropItems = false # Whether broken blocks drop standard items
[whitelist]
# Whitelist of breakable blocks (supports tag:, exact ID, and wildcards)
blockWhitelist = [
"tag:c:glass_blocks",
"tag:c:glass_panes",
"tag:minecraft:planks",
"tag:minecraft:logs",
"tag:minecraft:leaves",
"tag:minecraft:wooden_doors",
"tag:minecraft:wooden_trapdoors",
"tag:minecraft:fences",
"tag:minecraft:fence_gates",
"tag:minecraft:wooden_stairs",
"tag:minecraft:wooden_slabs",
"tag:minecraft:wooden_buttons",
"tag:minecraft:wooden_pressure_plates",
"tag:minecraft:standing_signs",
"tag:minecraft:wall_signs",
"tag:minecraft:ceiling_hanging_signs",
"tag:minecraft:wall_hanging_signs"
]
![[BD] 方块耐久 Block-Durability](https://cdn.modrinth.com/data/TwN8uQRZ/a8ef59ae171fb7cad18c32e662d1923b737bce5c_96.webp)

