[BD][BDur] Block Durability (v2.0.0)
Adds durability to Minecraft blocks, so firearms and explosions can wear them down step by step.
DISCLAMER None of this is my original work. The base mod was forked from [BD] 方块耐久 Block-Durability, and it includes additional features from FTB Teams Name Tags Addon. Most, if not all, code was produced using Claude with the Free plan over the course of multiple days. Im not a programmer or well-versed in Java, but I needed the features in this mod for a pack meant for my friends and me. If someone likes this mod enough to rewrite it, then please do so.
Demo
![]() Fire! |
![]() RPG explosion damage |
![]() "Explosion Spray" |
![]() 3x3x3 high-explosive shells blasting obsidian |
Explosion Durability
The v2.0.0 main branch targets Minecraft 1.21.1 NeoForge and focuses on tying explosions into block durability:
- TaCZ explosives: RPGs, grenades and similar explosions that normally only deal impact and do not break terrain now apply durability damage to damageable blocks in range, scaled by distance.
- Vanilla and other explosions: TNT, creepers, Create cannons and similar explosions still destroy blocks with their original logic; damageable blocks in range that were not destroyed outright still take durability damage that falls off with distance.
- Cover: solid collision shapes between the explosion and a block shield it from durability damage, reducing damage through walls.
- Configurable: the explosion damage multiplier, processing radius, vanilla-explosion toggle, block HP and block list can all be adjusted in the server config.
Only blocks on the block list are affected by this durability system (set
blacklistMode = trueto invert the list). The actual result depends on block hardness, HP overrides, the explosion's position and the configured multipliers.
Obsidian Can Be Blasted Open Too
Obsidian no longer has to rely on vanilla's "cannot be blown up" rule. Its durability comes from the hardness formula, so you don't need to hard-code 150:
block HP = max(minBlockHP, vanilla block hardness × hardnessMultiplier)
Obsidian's vanilla hardness is 50. Add it to the block list and set hardnessMultiplier to 3.0:
[block_list]
blockList = [
"minecraft:obsidian"
]
[hp_calculation]
minBlockHP = 1.0
hardnessMultiplier = 3.0
blockHPOverrides = []
Plugging that into the formula, obsidian HP is max(1.0, 50 × 3.0) = 150. With these durability settings it takes roughly 20-30 high-explosive shells from a Create cannon to break through obsidian. The exact number depends on where the shells land, the blast radius, the damage multiplier and other settings, so tune it to your server's pacing.
Compatible Versions
| Branch | Minecraft | Loader | Role |
|---|---|---|---|
master |
1.21.1 | NeoForge | Current main development branch |
forge-1.20.1 |
1.20.1 | MinecraftForge | Long-term maintenance branch |
The main branch requires NeoForge 21.1.80 or newer. TaCZ is an optional dependency; without it the mod still handles explosion durability for vanilla and other mods.
Basic Configuration
The config file is the server-side config/blockdurability-common.toml. Common options:
[general]
enabled = true
damagePerHit = 1.0
useBulletDamage = false
bulletDamageMultiplier = 1.0
[explosion]
enabled = true
damageMultiplier = 1.0
maxRadius = 16.0
handleVanillaExplosions = true
[healing]
healTimeoutSeconds = 120
damageMultiplier: multiplier for explosion durability damage.maxRadius: the largest radius scanned for a single explosion, which caps the extra cost of very large explosions.handleVanillaExplosions: whether to handle non-TaCZ explosions such as TNT and creepers.healTimeoutSeconds: how long after the last hit a damaged block recovers; set to0to disable healing.
The block list supports block tags, exact IDs and * wildcards:
[block_list]
blockList = [
"tag:minecraft:planks",
"tag:minecraft:logs",
"minecraft:obsidian",
"minecraft:*glass"
]
A block's max HP is computed from vanilla hardness by default. blockHPOverrides is only for giving individual blocks a fixed HP value and can normally stay empty. These overrides are global: they apply on all land, and hpMultiplier values from the [claims] section do not scale them:
[hp_calculation]
hardnessMultiplier = 1.5
minBlockHP = 1.0
blockHPOverrides = []
If you really need to override one block's computed result, add an entry in the form "minecraft:block_id=value". With FTB Chunks installed, [claims.claimed] has its own blockHPOverrides that replace these global values on claimed land (see below).
Per-Gun Overrides (TaCZ)
By default every bullet hit deals damagePerHit (or the bullet's own damage × bulletDamageMultiplier when useBulletDamage is on). gunOverrides in [general] lets you change the block damage and enable penetration for specific guns:
[general]
gunOverrides = [
"tacz:ak47|damage=2.0",
"tacz:m700|damage=10|penetration=true",
"tacz:m4a1|penetration=true",
"tacz:*|damage=0.5"
]
- Format:
"modid:gun_id|damage=value|penetration=true/false". Wildcards work in the gun id. Both keys are optional. - The first matching entry wins, so put specific guns above wildcards. Keys an entry leaves out use the normal behavior; they do not fall through to later entries.
damageis the exact block damage per hit for that gun.damagePerHit,useBulletDamageandbulletDamageMultiplierare ignored for it.0means the gun never damages blocks.penetration(defaultfalse): when a hit does more damage than the block's remaining HP, the block is destroyed and the leftover damage carries on to the next block the bullet would hit, and so on until it runs out. A block that cannot be damaged (not damageable per the block list, or durability disabled or invulnerable on that land) stops the bullet.- The
damageMultiplierof the land (see below) still applies to every block hit, so claimed land can stay tougher. Leftover damage is tracked before that multiplier, so each block applies its own land's value. - Only affects bullet hits. Explosions (RPGs, grenades, TNT) use the
[explosion]settings.
Land Claim Compatibility (FTB Chunks, optional)
With FTB Chunks (1.21.1 NeoForge) installed, block durability distinguishes claimed from unclaimed land. Each has its own settings, and the claimed values can be overridden per team. Without FTB Chunks, all land is treated as unclaimed and the mod behaves exactly as before.
[claims]
ftbChunksIntegration = true
[claims.unclaimed] # land not claimed by any team
enabled = true # false = block durability is off here
hpMultiplier = 1.0 # multiplier on block max HP
damageMultiplier = 1.0 # durability damage multiplier (bullets and explosions), 0 = invulnerable
healTimeoutSeconds = -1 # -1 = use the global heal setting, 0 = never heal
[claims.claimed] # land inside any team's claim (the baseline for all teams)
enabled = true
hpMultiplier = 1.0
damageMultiplier = 1.0
healTimeoutSeconds = -1
blockHPOverrides = [] # exact HP per block on claimed land only, e.g. "minecraft:obsidian=300"
[claims.teams]
overrides = [
"Dragons|hpMultiplier=3.0|damageMultiplier=0.5",
"Builders|enabled=false",
"Raiders|healTimeoutSeconds=600"
]
- Multipliers stack on top of the existing values in
hp_calculation,generalandexplosion; the defaults (all 1.0) change nothing. - Each
overridesentry has the form"<team>|key=value|key=value".<team>can be the FTB team's UUID, short name or display name (case-insensitive). Only the listed keys are replaced; the rest come from[claims.claimed]. - Available keys:
enabled,hpMultiplier,damageMultiplier,healTimeoutSeconds. - Block HP is looked up in this order:
[claims.claimed] blockHPOverrides(claimed land only), then the global[hp_calculation] blockHPOverrides(all land), then the hardness formula multiplied by the land'shpMultiplier. Overrides are exact values and are never scaled byhpMultiplier. Only claimed land has its own override list; unclaimed land just uses the global one. - When land is claimed, unclaimed or changes owner, existing damage progress is reset.
Team Name Tags (FTB Teams, optional, client side)
With FTB Teams (1.21.1 NeoForge) installed on the client, player name tags work like this:
- Teammates' name tags show within
showTeammateDistance. Other players' name tags only show while you look at them (withinshowNametagDistance, and with line of sight ifrequireLineOfSightis on). - Shown name tags get the player's team name (in the team color) and a team-colored bar under it.
- Without FTB Teams, or with
enabled = false, vanilla name tags are left untouched.
The options are in the client config config/blockdurability-client.toml:
[nametags]
enabled = true
selectionRadius = 0 # blocks of leeway around the crosshair when looking at a player
showNametagDistance = 128 # max distance for other teams' name tags
showTeammateDistance = 128 # max distance for teammates' name tags
requireLineOfSight = true # other teams' name tags need a clear line of sight
showInvisiblePlayers = true # looking directly at an invisible player shows their name tag
showTeamName = true # show the team name under the player's name
hideOnSneak = true # hide the team name and color bar while the player sneaks
renderForSelf = false # show your own name tag in the inventory and third person
This feature is ported from the FTB Teams Name Tags Addon by skyjay1 and is licensed under the LGPL-3.0 (see licenses/).
In-Game Rule
Admins can adjust the recovery time of damaged blocks on the fly:
/gamerule blockDurabilityHealSeconds <seconds>
For example, /gamerule blockDurabilityHealSeconds 60 makes blocks recover after 60 seconds, and 0 disables healing.
Building
Requires JDK 21:
./gradlew build
./gradlew test
The build output is build/libs/blockdurability-2.0.0-neoforge.jar.
License
This project is open source under the MIT License.




