ArmorModifications proerties/methods not accessible from zenscript
AnnaErisian opened this issue ยท 0 comments
Versions (Be specific, do not write "latest"):
- Construct's Armory: 1.12.2-1.2.4
- Tinkers' Construct: 1.12.2-2.12.0.157
- Mantle: 1.3.3.55
- Forge:14.23.5.2838
Observed Behavior: Errors in chat/log:
No such member in c4.conarm.lib.armor.ArmorMofigications: addArmor
No such member in c4.conarm.lib.armor.ArmorMofigications: addToughness
Expected Behavior: Modifications to armor modifiers
ContentTweaker Script:
#loader contenttweaker
#modloaded tconstruct aether_legacy thebetweenlands
import mods.contenttweaker.Color;
...
zanite_hardfall_armor.getModifications = function(trait, player, mods, armor, damageSource, damage, index) {e
if(player.y < 60) {
val d = 60 - player.y;
mods.addArmor(d / 25);
mods.addToughness(d / 50);
}
return mods;
};
zanite_hardfall_armor.register();
My guess is that this is because you haven't annotated c4.conarm.lib.armor.ArmorModifications for ZenScript, but I'm not terribly familiar with how it all works.