
Back to NxLabs

Rock Attac - Armor Protec
FBy Furio
Enables vanilla armor to natively mitigate crushing damage from falling blocks.

Description
Cave-In Armor and Falling Blocks Protection
"No dwarves were crushed during the making of this mod."
This mod fixes a vanilla limitation where falling blocks from cave-ins or landslides completely bypass your armor protections, leaving you to take full raw damage regardless of your gear.
<span style="background-color: #fbeeb8;"> Now with online repo and verifiable file integrity! </span>
Key Features
- Purely Server-Side: Clients don't need to download anything. Just drop it into the server's mod folder and start mining.
- Highly Configurable: Tailor your experience in the way you enjoy it.
Configuration & Modes
Upon the first server boot, a configuration file named
caveinarmorConfig.json will be generated inside your ModConfig directory.New versions will automatically upgrade your configuration files. If an upgrade fails, the mod will generate a new default configuration and rename the old, obsolete file with a <strong class="rQesXe MPyX" data-sfc-cp="" data-sfc-root="ep" data-complete="true" data-copy-service-computed-style="font-family: "Google Sans", Arial, sans-serif; font-size: 16px; font-weight: 700; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);">.bad extension. This follows the <strong class="rQesXe MPyX" data-sfc-cp="" data-sfc-root="ep" data-complete="true" data-copy-service-computed-style="font-family: "Google Sans", Arial, sans-serif; font-size: 16px; font-weight: 700; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);">Non-Destructive Error Handling principle ensuring your old settings are never accidentally deleted.
These files are completely safe; you can inspect them to recover your old values or delete them manually if they are no longer needed.
You can customize the mod with two distinct protection systems:
1. Layered Mode (Default)
"UseLayered": true
A more immersive "mining safety" experience. Boulders striking you will hit your entire body sequentially, filtering damage from top to bottom. There are 3 distinct situations, and you can configure individual effectiveness multipliers for each slot:
Spoiler!
- VERTICAL fall:
Vertical: {
LayeredHeadMultiplier: Helmet effectiveness (Default: 1.0 - 100%)
LayeredTorsoMultiplier: Chestplate effectiveness (Default: 0.5 - 50%)
LayeredLegsMultiplier: Greaves effectiveness (Default: 0.1 - 10%)}
- HORIZONTAL bounce:
Horizontal: {
LayeredHeadMultiplier: Helmet effectiveness (Default: 0.0 - 0%)
LayeredTorsoMultiplier: Chestplate effectiveness (Default: 0.5 - 50%)
LayeredLegsMultiplier: Greaves effectiveness (Default: 1.0 - 100%)}
- UNDER_FEET slide: uses only
Horizontal.LayeredLegsMultiplier.2. Lottery Mode
"UseLayered": false
Mirrors the native vanilla combat mechanics. Boulders falling on you will roll a random lottery to hit one specific body slot based on standard game weights (20% Head, 50% Torso, 30% Legs). Only the targeted piece will mitigate the damage and lose durability.
Other Global Parameters:
Spoiler!
-
-
ConfigVersion: File verion number for integrity check.
-
-
-
Enabled: Instantly toggle the mod on or off. (Default:true)EnableDebugLogging: Outputs real-time damage mitigation and slot-targeting logs directly to your server console. (Default:false)DurabilityDamageMultiplier: Scales how much durability armor loses when crushed. Set to0.0if you want armor to block rocks without losing durability. (Default:0.1- 10%)MinimumDamageThreshold: The absolute minimum damage a player will always take from a cave-in, preventing late-game players from completely cheesing collapsing mines. (Default:0.5)
-
Security & Automated Builds
To guarantee safety and complete transparency:
Ratings & reviews
No ratings yet
Sign in to leave a rating or comment.

