← Назад к ресурсам

[BD] 方块耐久 Block-Durability

Make TaCZ guns truly destructive — no more binary "can hit / can't hit". Every bullet chips away at a block's HP, complete with crack progression effects for a deeply satisfying destruction feel.

Modrinth game-mechanics utility

Описание

中文见[GitHub](https://github.com/zhuimeng1233/block-durability) # Block Durability Give Minecraft blocks durability values — shoot them enough and they break! ## Dependencies - **NeoForge** 1.21.1 - **[TaCZ](https://modrinth.com/mod/tacz-1.21.1)** (Timeless & Classics Guns: Zero, NeoForge port) ≥ 1.1.6 — optional; the mod loads without errors when TaCZ is absent but will have no effect. ## Features - **Whitelist-based**: only blocks listed in the config can be damaged by bullets - **HP = Hardness × Multiplier**: block HP is derived from vanilla hardness, with manual overrides available - **Crack progression**: damaged blocks display destruction crack stages (like player mining) - **Particles & Sound**: block break particles and hit sounds on impact - **Tag matching**: supports block tags (`tag:minecraft:planks`), automatically compatible with blocks from other mods ## Default Breakable Blocks | Category | Tag | |---|---| | Glass blocks | `tag:c:glass_blocks` | | Glass panes | `tag:c:glass_panes` | | Planks | `tag:minecraft:planks` | | Logs | `tag:minecraft:logs` | | Wooden doors | `tag:minecraft:wooden_doors` | | Wooden trapdoors | `tag:minecraft:wooden_trapdoors` | | Wooden stairs | `tag:minecraft:wooden_stairs` | | Wooden slabs | `tag:minecraft:wooden_slabs` | | Wooden buttons | `tag:minecraft:wooden_buttons` | | Wooden pressure plates | `tag:minecraft:wooden_pressure_plates` | | Signs | `tag:minecraft:standing_signs`, etc. | ## Configuration The config file is auto-generated at `config/blockdurability-common.toml`: ```toml [general] enabled = true damagePerHit = 1.0 # Fixed damage per bullet hit useBulletDamage = false # Use bullet entity damage instead [whitelist] blockWhitelist = [ "tag:c:glass_blocks", "tag:minecraft:planks", # ... supports tag: prefix and name wildcards ] [hp_calculation] hardnessMultiplier = 1.5 # HP = max(minHP, hardness × multiplier) minBlockHP = 1.0 blockHPOverrides = [] # Format: "minecraft:glass=2" [effects] spawnBreakParticles = true playBreakSound = true dropItems = false