GC-spigot / AdvancedEnchantments

Superior Custom Enchantments Creator for Minecraft And Spigot platform
154 stars 63 forks source link

Advanced Enchantments and Custom Model Data not rendering Armor textures for Armor Sets. #2705

Closed Alphatoxic closed 2 years ago

Alphatoxic commented 2 years ago

Describe the bug

To begin, this issue involves the two following plugins: Itemsadder and Advancedenchantments. I have determined that the issue resides within Advanced Enchantments however I am unsure. I am seeking to create armor sets within the AdvancedEnchantments (AE from here on out) plugin. I want to pair these custom armor sets with custom armor textures from Itemsadder (IA from here on out). To begin the diagnosis, I investigated if the issue was with IA. To do this, I looked at the textures of the physical items of the armor. See Figures 1 and 2. Besides the obvious lack of vanilla enchantments on the set from IA in Figure 2, the textures of the items are identical. The issue does not reside within the Custom Model Data itself since the actual textures of the items match from the two plugins. The armor texture is not rendered when they are worn on a player. Figure 3 and 4 is where I am wearing the AE armor with the IA textures (excuse my skin). To show that the armor textures do actually render with IA, see Figures 6 and 7. To identify how this is possible, an understanding on how IA's armor works, so I will provide the WIKI pages regarding armor rendering.

Here is a Link on how to add the armor from IA - https://itemsadder.devs.beer/plugin-usage/advanced/creating-a-custom-item/armor

Here is a Link on how to render the armor in-game from IA - https://itemsadder.devs.beer/plugin-usage/advanced/armors/texture

After understanding how the textures of the IA armor works (I honestly do not fully understand myself), Here is the configurations for both the IA armors, and the asets yml.

IA Druid Armor CONFIG -

info: namespace: druidarmor armors_rendering: druid_armor: color: "#84fc03" layer_1: druid/layer_1 layer_2: druid/layer_2 use_color: false items: druidhelmet: display_name: Floral Wreathe permission: cosmetic_armors.druid_armor resource: generate: true model_id: 88601 textures:

AE Armor set CONFIG -

name: '&5&lDruid Armor' material: LEATHER settings: equipped:

The important places to look can be seen in Figures 7 - 14.

All of the custom model datas match, the armor, when attained via IA, renders when worn, the only issue is when the asets armor is worn.

How to reproduce

  1. Install the latest version of LoneLibs, Itemsadder, AE and its dependencies (if any).
  2. Configure a set of custom armor using the armor renderer from IA.
  3. Match the Custom Model Data into the Asets yml.
  4. Wear the custom armor from AE

Screenshots / Videos

Figure 1 - Items from AE with the IA textures - image Figure 2 - Items from IA with the IA textures - image Figure 3 - Front of worn Armor from AE with IA textures - image Figure 4 - Rear of worn Armor from AE with IA textures - image Figure 5 - Front of worn Armor from IA with IA textures - image Figure 6 - Rear of worn Armor from IA with IA textures - image Figure 7 - Custom Model Data section from Druid Helmet IA CONFIG - image Figure 8 - Custom Model Data section from Druid Chestplate IA CONFIG - image Figure 9 - Custom Model Data section from Druid Leggings IA CONFIG - image Figure 10 - Custom Model Data section from Druid Boots IA CONFIG - image Figure 11 - Custom Model Data section from Druid Helmet AE CONFIG - image Figure 12 - Custom Model Data section from Druid Chestplate AE CONFIG - image Figure 13 - Custom Model Data section from Druid Leggings AE CONFIG - image Figure 14 - Custom Model Data section from Druid Boots AE CONFIG - image

"/ae plinfo" link

https://paste.md-5.net/peramagehe

Server Log

https://mcpaste.io/e75946dcfdf079bf

DuneSciFye commented 2 years ago

To sum it up, custom model textures made with Item Adder won't display when wearing the armor

Burchard36 commented 2 years ago

Hello, in my past experiences with Armor Models, you need optifine installed on your end in order to render these. Have you tried installing optifine and doing them this way?

I have no experience in ItemsAdder, but I do with CustomItems, and with that plugin you need Optifine installed with armor sets installed to the server side texture pack (And i assume with any other plugin that add custom models to the game for armor)

Have you tried running only ItemsAdder on your server, and validating that they work this way?

Hope to see a response from you :)

DuneSciFye commented 2 years ago

@Burchard36 Close this one, Alpha isn't needing it anymore, I've talked with him