Started looking into coding dragon armor w/ elytra
parent
171c0a228a
commit
629e71f220
@ -0,0 +1,6 @@
|
|||||||
|
public class config {
|
||||||
|
public static class DragonArmor {
|
||||||
|
public static final int[] BASE_DURABILITY = new int[] {17, 19, 20, 15};
|
||||||
|
private static final int[] PROTECTION_VALUES = new int[] {5, 8, 10, 5};
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
package net.fabricmc.example;
|
||||||
|
|
||||||
|
import net.fabricmc.config;
|
||||||
|
|
||||||
|
public class DragonArmorMaterial implements ArmorMaterial {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getDurability(EquipmentSlot slot) {
|
||||||
|
return config.DragonArmor.BASE_DURABILITY[slot.getEntitySlotId()] * ;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue