illusivesoulworks / constructsarmory

A Tinkers' Construct add-on for those looking to enter the world of armor
https://www.curseforge.com/minecraft/mc-mods/constructs-armory
Other
54 stars 36 forks source link

Error adding traits to custom material #256

Closed brisingraerowing closed 3 years ago

brisingraerowing commented 3 years ago

Versions (Be specific, do not write "latest"):

[INITIALIZATION][CLIENT][ERROR] Could not identify Trait <conarmtrait:magnetic>, it will not be added to material carbon
[INITIALIZATION][CLIENT][ERROR] Could not identify Trait <conarmtrait:magnetic_armor>, it will not be added to material carbon
[INITIALIZATION][CLIENT][ERROR] Could not identify Trait <conarmtrait:hellish_armor>, it will not be added to material carbon
[INITIALIZATION][CLIENT][ERROR] Could not identify Trait <conarmtrait:hellish_armor>, it will not be added to material carbon

(I did notice that hellish isn't available as an armor trait after getting this error, but magnetic is. And setting the default trait to hellish worked).

Expected Behavior:

Traits are added without errors.

Script: https://gist.github.com/BrisingrAerowing/6ed1957892397a2fd27c170aab1f0329

TheIllusiveC4 commented 3 years ago

Where do the traits come from originally?

brisingraerowing commented 3 years ago

Magnetic and Hellish are built into Tinkers.

TheIllusiveC4 commented 3 years ago

Because magnetic is a leveled trait, magnetic_armor needs the level info included. So the actual identifier would be magnetic1_armor for the level 1 magnetic trait. I know it's weird, but it's just a result of how the Construct's Armory and Tinkers' Construct's systems interacted.