mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 11:59:14 +00:00
First armor modifier
This commit is contained in:
1 parent
8b154a9cb4
commit
90f09b7e2d
12 files changed
+299
-19
No files matched your search
@@ -49,12 +49,16 @@ public class ExoArmor extends ArmorCore
|
||||
NBTTagCompound baseTag = new NBTTagCompound();
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
list.appendTag(getAttributeTag("generic.attackDamage", "ExoAttack", 10.0, true, knockback));
|
||||
list.appendTag(getAttributeTag("generic.movementSpeed", "ExoSpeed", 1.5, false, speed));
|
||||
list.appendTag(getAttributeTag("generic.maxHealth", "ExoHealth", 10.0, true, health));
|
||||
list.appendTag(getAttributeTag("generic.knockbackResistance", "ExoKnockback", 0.5, false, knockback));
|
||||
//list.appendTag(getAttributeTag("generic.attackDamage", "ExoAttack", 10.0, true, knockback));
|
||||
//list.appendTag(getAttributeTag("generic.movementSpeed", "ExoSpeed", 1.5, false, speed));
|
||||
//list.appendTag(getAttributeTag("generic.maxHealth", "ExoHealth", 10.0, true, health));
|
||||
//list.appendTag(getAttributeTag("generic.knockbackResistance", "ExoKnockback", 0.5, false, knockback));
|
||||
//baseTag.setTag("AttributeModifiers", list);
|
||||
|
||||
NBTTagCompound armorTag = new NBTTagCompound();
|
||||
armorTag.setInteger("Modifiers", 30);
|
||||
baseTag.setTag(SET_NAME, armorTag);
|
||||
|
||||
baseTag.setTag("AttributeModifiers", list);
|
||||
armor.setTagCompound(baseTag);
|
||||
par3List.add(armor);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user