Construct's Armory - yeelp/Distinct-Damage-Descriptions GitHub Wiki
DDD adds special integration with Construct's Armory. The integration builds upon the system used for Tinker's Construct integration, but is much more simplified, as the armor system Construct's Armory introduces is more simplified than Tinker's Construct.
Armor Effectiveness
Each set of armor plates has an Armor Effectiveness. This is basically an Armor Distribution. A piece of armor will have an Armor Distribution that matches the Armor Effectiveness of the corresponding plates piece.
Armor Immunities
DDD introduces a set of armor traits that grant damage type immunities. DDD automatically creates immunity traits for every damage type on start up. In the config, the immunity traits can be given to a specific material and the immunity traits can be given to either all the core pieces or all the plates pieces. While wearing armor with a damage type immunity, the wearer will become fully immune to damage of that type.
Custom Damage Types
DDD will still create damage type immunity traits for custom damage types, but will not give it a name or description. However, for any damage type, DDD will look for the following lang keys, where <damage_type>
is the internal name of the type, ddd_
prefix excluded:
- Name:
modifier.ddd_<damage_type>_immunity_armor.name
- Description:
modifier.ddd_<damage_type>_immunity_armor.desc
For example, DDD's built in thunder damage type has lang keys that look like:
modifier.ddd_thunder_immunity_armor.name=Thunder Impunity
modifier.ddd_thunder_immunity_armor.desc=§oThunderstruck!§r\nYour armor makes you immune to Thunder damage!
The §o
and §r
is Minecraft formatting codes for italics and resetting formatting, respectively. The \n
is a newline character and makes sure the rest of the description starts on a new line, like it does for all other armor traits.