pylon Armor
fun pylonArmor(stack: ItemStack, key: NamespacedKey, slot: EquipmentSlotGroup, hasDurability: Boolean): ItemStackBuilder(source)
fun pylonArmor(material: Material, key: NamespacedKey, slot: EquipmentSlotGroup, hasDurability: Boolean): ItemStackBuilder(source)
Creates a new ItemStack for a PylonItem that can be worn in the specified slot. You must provide a value for armor and armor-toughness in the Settings for the item.
If hasDurability is true, gives the item a max durability defined by durability in the Settings. Otherwise, removes any existing durability.
settings/example-armor.yml
armor: 2.0 # double
armor-toughness: 0.5 # double
durability: 250 # integerContent copied to clipboard