Skip to content

Commit

Permalink
Mark armor items as disallowing animated
Browse files Browse the repository at this point in the history
We can't animate the worn armor so better if we don't animate the items. Means a palette that has a non-animated variant will look more consistent
  • Loading branch information
KnightMiner committed Jan 19, 2025
1 parent ddc6745 commit 02e29c9
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 10 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected void addAllSpites() {
// plate textures
addPart("maille", StatlessMaterialStats.MAILLE.getIdentifier());
for (ArmorItem.Type slot : ArmorItem.Type.values()) {
buildTool("armor/plate/" + slot.getName())
buildTool("armor/plate/" + slot.getName()).disallowAnimated() // the armor model won't be animated, so don't animate the item
.addBreakablePart("plating", PlatingMaterialStats.TYPES.get(slot.ordinal()).getId())
.addBreakablePart("maille", StatlessMaterialStats.MAILLE.getIdentifier());
}
Expand All @@ -68,15 +68,15 @@ protected void addAllSpites() {
addSprite("staff/modifiers/tconstruct_embellishment", WOOD);
addSprite("staff/large_modifiers/tconstruct_embellishment", WOOD);

// slimesuit textures
addSprite("armor/slime/skull_modifiers/tconstruct_embellishment", SLIMESUIT);
addSprite("armor/slime/skull_modifiers/broken/tconstruct_embellishment", SLIMESUIT);
addSprite("armor/slime/wings_modifiers/tconstruct_embellishment", SLIMESUIT);
addSprite("armor/slime/wings_modifiers/broken/tconstruct_embellishment", SLIMESUIT);
addSprite("armor/slime/shell_modifiers/tconstruct_embellishment", SLIMESUIT);
addSprite("armor/slime/shell_modifiers/broken/tconstruct_embellishment", SLIMESUIT);
addSprite("armor/slime/boot_modifiers/tconstruct_embellishment", SLIMESUIT);
addSprite("armor/slime/boot_modifiers/broken/tconstruct_embellishment", SLIMESUIT);
// slimesuit textures - the armor model won't be animated, so don't animate the item
addSprite("armor/slime/skull_modifiers/tconstruct_embellishment", SLIMESUIT).disallowAnimated();
addSprite("armor/slime/skull_modifiers/broken/tconstruct_embellishment", SLIMESUIT).disallowAnimated();
addSprite("armor/slime/wings_modifiers/tconstruct_embellishment", SLIMESUIT).disallowAnimated();
addSprite("armor/slime/wings_modifiers/broken/tconstruct_embellishment", SLIMESUIT).disallowAnimated();
addSprite("armor/slime/shell_modifiers/tconstruct_embellishment", SLIMESUIT).disallowAnimated();
addSprite("armor/slime/shell_modifiers/broken/tconstruct_embellishment", SLIMESUIT).disallowAnimated();
addSprite("armor/slime/boot_modifiers/tconstruct_embellishment", SLIMESUIT).disallowAnimated();
addSprite("armor/slime/boot_modifiers/broken/tconstruct_embellishment", SLIMESUIT).disallowAnimated();
addTexture("tinker_armor/slime/armor", SLIMESUIT).disallowAnimated();
addTexture("tinker_armor/slime/leggings", SLIMESUIT).disallowAnimated();
addTexture("tinker_armor/slime/wings", SLIMESUIT).disallowAnimated();
Expand Down

0 comments on commit 02e29c9

Please sign in to comment.