@@ -67,6 +67,15 @@ func (ArmourTierLeather) KnockBackResistance() float64 { return 0 }
6767func (ArmourTierLeather ) EnchantmentValue () int { return 15 }
6868func (ArmourTierLeather ) Name () string { return "leather" }
6969
70+ // ArmourTierCopper is the ArmourTier of copper armour.
71+ type ArmourTierCopper struct {}
72+
73+ func (ArmourTierCopper ) BaseDurability () float64 { return 121 }
74+ func (ArmourTierCopper ) Toughness () float64 { return 0 }
75+ func (ArmourTierCopper ) KnockBackResistance () float64 { return 0 }
76+ func (ArmourTierCopper ) EnchantmentValue () int { return 8 }
77+ func (ArmourTierCopper ) Name () string { return "copper" }
78+
7079// ArmourTierGold is the ArmourTier of gold armour.
7180type ArmourTierGold struct {}
7281
@@ -114,7 +123,7 @@ func (ArmourTierNetherite) Name() string { return "netherite" }
114123
115124// ArmourTiers returns a list of all armour tiers.
116125func ArmourTiers () []ArmourTier {
117- return []ArmourTier {ArmourTierLeather {}, ArmourTierGold {}, ArmourTierChain {}, ArmourTierIron {}, ArmourTierDiamond {}, ArmourTierNetherite {}}
126+ return []ArmourTier {ArmourTierLeather {}, ArmourTierCopper {}, ArmourTierGold {}, ArmourTierChain {}, ArmourTierIron {}, ArmourTierDiamond {}, ArmourTierNetherite {}}
118127}
119128
120129// armourTierRepairable returns true if the ArmourTier passed is repairable.
@@ -124,6 +133,8 @@ func armourTierRepairable(tier ArmourTier) func(Stack) bool {
124133 switch tier .(type ) {
125134 case ArmourTierLeather :
126135 _ , ok = stack .Item ().(Leather )
136+ case ArmourTierCopper :
137+ _ , ok = stack .Item ().(CopperIngot )
127138 case ArmourTierGold :
128139 _ , ok = stack .Item ().(GoldIngot )
129140 case ArmourTierChain , ArmourTierIron :
0 commit comments