Crystalite Armor additional effects
This commit is contained in:
parent
5d81d7b448
commit
bc53748657
18 changed files with 252 additions and 116 deletions
18
src/main/java/ru/betterend/item/CrystaliteLeggings.java
Normal file
18
src/main/java/ru/betterend/item/CrystaliteLeggings.java
Normal file
|
@ -0,0 +1,18 @@
|
|||
package ru.betterend.item;
|
||||
|
||||
import net.minecraft.world.entity.EquipmentSlot;
|
||||
import net.minecraft.world.entity.ai.attributes.AttributeModifier;
|
||||
import net.minecraft.world.entity.ai.attributes.Attributes;
|
||||
import net.minecraft.world.item.Rarity;
|
||||
import ru.betterend.registry.EndItems;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class CrystaliteLeggings extends CrystaliteArmor {
|
||||
|
||||
public CrystaliteLeggings() {
|
||||
super(EquipmentSlot.LEGS, EndItems.makeItemSettings().rarity(Rarity.RARE));
|
||||
UUID uuid = ARMOR_MODIFIER_UUID_PER_SLOT[EquipmentSlot.LEGS.getIndex()];
|
||||
addAttributeModifier(Attributes.MAX_HEALTH, new AttributeModifier(uuid, "Armor health boost", 4.0, AttributeModifier.Operation.ADDITION));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue