Started looking into coding dragon armor w/ elytra
This commit is contained in:
parent
171c0a228a
commit
629e71f220
@ -9,8 +9,8 @@ org.gradle.jvmargs=-Xmx1G
|
|||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.0.0
|
mod_version = 1.0.0
|
||||||
maven_group = com.example
|
maven_group = com.refsonyak.griegtech
|
||||||
archives_base_name = fabric-example-mod
|
archives_base_name = griegtech-mod
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
|
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
|
||||||
|
6
src/main/java/net/fabricmc/Config.java
Normal file
6
src/main/java/net/fabricmc/Config.java
Normal file
@ -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
Block a user