Made Zanite Ring and Pendant repairable with altar and anvil.
This commit is contained in:
parent
a23dd4572e
commit
57a6ee90dc
|
@ -114,6 +114,13 @@ public class ItemAccessory extends Item {
|
|||
|
||||
return super.onItemRightClick(stack, worldIn, player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getIsRepairable(ItemStack toRepair, ItemStack repair)
|
||||
{
|
||||
return (repair.getItem() == ItemsAether.zanite_gemstone && toRepair.getItem() == ItemsAether.zanite_ring)
|
||||
|| (repair.getItem() == ItemsAether.zanite_gemstone && toRepair.getItem() == ItemsAether.zanite_pendant);
|
||||
}
|
||||
|
||||
public AccessoryType getExtraType() {
|
||||
return this.extraType;
|
||||
|
|
|
@ -91,6 +91,9 @@ public class AetherRegistries {
|
|||
AetherAPI.instance().register(new AetherEnchantment(ItemsAether.gravitite_leggings, 13000));
|
||||
AetherAPI.instance().register(new AetherEnchantment(ItemsAether.gravitite_boots, 13000));
|
||||
|
||||
AetherAPI.instance().register(new AetherEnchantment(ItemsAether.zanite_ring, 2250));
|
||||
AetherAPI.instance().register(new AetherEnchantment(ItemsAether.zanite_pendant, 2250));
|
||||
|
||||
AetherAPI.instance().register(new AetherEnchantment(ItemsAether.dart, new ItemStack(ItemsAether.dart, 1, 2), 250));
|
||||
AetherAPI.instance().register(new AetherEnchantment(ItemsAether.dart_shooter, new ItemStack(ItemsAether.dart_shooter, 1, 2), 500));
|
||||
|
||||
|
|
Loading…
Reference in a new issue