Skip to content

Commit

Permalink
update item textures for heretic armor
Browse files Browse the repository at this point in the history
  • Loading branch information
dphaldes committed Nov 4, 2023
1 parent 07ca279 commit b9e9ea2
Show file tree
Hide file tree
Showing 20 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ public static void initItemColors(final RegisterColorHandlersEvent.Item event) {
event.register((stack, color) -> color > 0 ? -1 : colorFromArmor(stack), ItemRegistry.LIVING_MAGE_HOOD);
event.register((stack, color) -> color > 0 ? -1 : colorFromArmor(stack), ItemRegistry.LIVING_MAGE_ROBES);
event.register((stack, color) -> color > 0 ? -1 : colorFromArmor(stack), ItemRegistry.LIVING_MAGE_LEGGINGS);
event.register((stack, color) -> color > 0 ? -1 : colorFromArmor(stack), ItemRegistry.LIVING_MAGE_BOOTS);
}


public static int colorFromArmor(ItemStack stack) {
IPerkHolder<ItemStack> holder = getPerkHolder(stack);
if (!(holder instanceof ArmorPerkHolder armorPerkHolder))
return DyeColor.PURPLE.getTextColor();
return DyeColor.RED.getTextColor();
return DyeColor.byName(armorPerkHolder.getColor(), DyeColor.RED).getTextColor();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "tomeofblood:item/living_mage_armor/living_mage_boots"
"layer0": "tomeofblood:item/living_mage_armor/living_boots",
"layer1": "tomeofblood:item/living_mage_armor/living_boots_gold"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "tomeofblood:item/living_mage_armor/living_mage_hood",
"layer1": "tomeofblood:item/living_mage_armor/living_mage_hood_gold"
"layer0": "tomeofblood:item/living_mage_armor/living_hat",
"layer1": "tomeofblood:item/living_mage_armor/living_hat_gold"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "tomeofblood:item/living_mage_armor/living_mage_leggings",
"layer1": "tomeofblood:item/living_mage_armor/living_mage_leggings_gold"
"layer0": "tomeofblood:item/living_mage_armor/living_leggings",
"layer1": "tomeofblood:item/living_mage_armor/living_leggings_gold"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "tomeofblood:item/living_mage_armor/living_mage_robes",
"layer1": "tomeofblood:item/living_mage_armor/living_mage_robes_gold"
"layer0": "tomeofblood:item/living_mage_armor/living_chest",
"layer1": "tomeofblood:item/living_mage_armor/living_chest_gold"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit b9e9ea2

Please sign in to comment.