basically done with data generation now. model generation is pretty much fully working/automated
build / build (push) Failing after 3m31s
build / build (push) Failing after 3m31s
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package dev.zxq5.items.template
|
||||
|
||||
import dev.zxq5.Fantasysmp
|
||||
import dev.zxq5.util.resourceKey
|
||||
import net.minecraft.core.Holder
|
||||
import net.minecraft.resources.ResourceKey
|
||||
@@ -19,6 +20,14 @@ abstract class GenericGearSet: GenericItemSet() {
|
||||
|
||||
abstract val armorSet: ArmorSet
|
||||
|
||||
open val equipmentAssetSpec: EquipmentAssetSpec
|
||||
get() = EquipmentAssetSpec(
|
||||
layers = mapOf(
|
||||
"humanoid" to listOf(EquipmentLayer("${Fantasysmp.MOD_ID}:$materialName")),
|
||||
"humanoid_leggings" to listOf(EquipmentLayer("${Fantasysmp.MOD_ID}:$materialName")),
|
||||
)
|
||||
)
|
||||
|
||||
open val materialKey: ResourceKey<EquipmentAsset>
|
||||
get() = materialName.resourceKey()
|
||||
|
||||
@@ -33,7 +42,7 @@ abstract class GenericGearSet: GenericItemSet() {
|
||||
materialDefinition.toArmorMaterial()
|
||||
}
|
||||
|
||||
fun fullSetEquippedBy(p: Player) =
|
||||
open fun fullSetEquippedBy(p: Player) =
|
||||
p.getItemBySlot(EquipmentSlot.HEAD).item == armorSet.helmet &&
|
||||
p.getItemBySlot(EquipmentSlot.CHEST).item == armorSet.chestplate &&
|
||||
p.getItemBySlot(EquipmentSlot.LEGS).item == armorSet.leggings &&
|
||||
|
||||
Reference in New Issue
Block a user