Skip to content

Commit

Permalink
Add Enchantable behavior to star armor
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Mar 9, 2024
1 parent 21ce7c2 commit a8b8d94
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ object Items : ItemRegistry by Machines.registry {
val STAR_HOE = registerItem("star_hoe", Tool, Damageable, Enchantable, Tilling)

// Armor
val STAR_HELMET = registerItem("star_helmet", Wearable(EquipmentSlot.HEAD, Sounds.ARMOR_EQUIP_STAR), Damageable)
val STAR_CHESTPLATE = registerItem("star_chestplate", Wearable(EquipmentSlot.CHEST, Sounds.ARMOR_EQUIP_STAR), Damageable)
val STAR_LEGGINGS = registerItem("star_leggings", Wearable(EquipmentSlot.LEGS, Sounds.ARMOR_EQUIP_STAR), Damageable)
val STAR_BOOTS = registerItem("star_boots", Wearable(EquipmentSlot.FEET, Sounds.ARMOR_EQUIP_STAR), Damageable)
val STAR_HELMET = registerItem("star_helmet", Wearable(EquipmentSlot.HEAD, Sounds.ARMOR_EQUIP_STAR), Damageable, Enchantable)
val STAR_CHESTPLATE = registerItem("star_chestplate", Wearable(EquipmentSlot.CHEST, Sounds.ARMOR_EQUIP_STAR), Damageable, Enchantable)
val STAR_LEGGINGS = registerItem("star_leggings", Wearable(EquipmentSlot.LEGS, Sounds.ARMOR_EQUIP_STAR), Damageable, Enchantable)
val STAR_BOOTS = registerItem("star_boots", Wearable(EquipmentSlot.FEET, Sounds.ARMOR_EQUIP_STAR), Damageable, Enchantable)

// Plates
val IRON_PLATE = registerItem("iron_plate")
Expand Down
5 changes: 4 additions & 1 deletion machines/src/main/resources/configs/star_boots.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
armor: 2
max_durability: 350
max_durability: 350

enchantment_value: 10
enchantment_categories: ["breakable", "armor", "armor_feet"]
5 changes: 4 additions & 1 deletion machines/src/main/resources/configs/star_chestplate.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
armor: 7
max_durability: 350
max_durability: 350

enchantment_value: 10
enchantment_categories: ["breakable", "armor", "armor_chest"]
5 changes: 4 additions & 1 deletion machines/src/main/resources/configs/star_helmet.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
armor: 2
max_durability: 350
max_durability: 350

enchantment_value: 10
enchantment_categories: ["breakable", "armor", "armor_head"]
5 changes: 4 additions & 1 deletion machines/src/main/resources/configs/star_leggings.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
armor: 6
max_durability: 350
max_durability: 350

enchantment_value: 10
enchantment_categories: ["breakable", "armor", "armor_legs"]

0 comments on commit a8b8d94

Please sign in to comment.