Back to NxLabs

NxLabs / Vintage Story

Rock Attac - Armor Protec

FBy Furio

Enables vanilla armor to natively mitigate crushing damage from falling blocks.

Rock Attac - Armor Protec

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;">&nbsp;Now with online repo and verifiable file integrity!&nbsp;</span>

Key Features&nbsp;

  • 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&nbsp;the way you enjoy it.

Configuration &amp; Modes&nbsp;

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: &quot;Google Sans&quot;, Arial, sans-serif; font-size: 16px; font-weight: 700; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);">.bad&nbsp;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: &quot;Google Sans&quot;, 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.
&nbsp;
You can customize the mod with two distinct protection systems:

1. Layered Mode (Default)

"UseLayered": true

&nbsp;

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: {
&nbsp; &nbsp; LayeredHeadMultiplier: Helmet effectiveness (Default: 1.0 - 100%)
&nbsp; &nbsp; LayeredTorsoMultiplier: Chestplate effectiveness (Default: 0.5 - 50%)
&nbsp; &nbsp; LayeredLegsMultiplier: Greaves effectiveness (Default: 0.1 - 10%)
}
&nbsp;
- HORIZONTAL bounce: Horizontal: {
&nbsp; &nbsp; LayeredHeadMultiplier: Helmet effectiveness (Default: 0.0 - 0%)
&nbsp; &nbsp; LayeredTorsoMultiplier: Chestplate effectiveness (Default: 0.5 - 50%)
&nbsp; &nbsp; LayeredLegsMultiplier: Greaves effectiveness (Default: 1.0 - 100%)
}
&nbsp;
- UNDER_FEET slide: uses only Horizontal.LayeredLegsMultiplier.

2. Lottery Mode

"UseLayered": false

&nbsp;

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 to 0.0 if 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 &amp; Automated Builds

To guarantee safety and complete transparency:

Read the full description on Vintage Story ModDB →

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.