optifine icon indicating copy to clipboard operation
optifine copied to clipboard

[Bug] CIT Armors not working properly

Open Enderbod opened this issue 10 months ago • 4 comments

Description of Issue

My custom armors item are too dark, my custom armor models and items are also not displaying correctly depending on the durability of those, its working for vanilla armors apart for the turtle helmet for some reason.

Steps to Reproduce

  1. add 2 custom armors model in cit/armors/custom_armor (another armor to test the damage propertie)
  2. add the 2 .properties to these armor models
type=armor
items=chainmail_chestplate , chainmail_helmet , chainmail_boots
texture.chainmail_layer_1=custom_layer_1
components.minecraft\:custom_model_data={strings:["custom"]}
type=armor
items=chainmail_chestplate , chainmail_helmet , chainmail_boots
texture.chainmail_layer_1=1custom_layer_1
components.minecraft\:custom_model_data={strings:["custom"]}
damage=50-100%
  1. add another 2 set of custom armor item in cit/armors/custom_armor/item (to test the damage propertie again)
  2. add 8 .properties to these armor items (using 4 files for a set)
type=item
items=chainmail_boots
texture.chainmail_boots=custom_boots
components.minecraft\:custom_model_data={strings:["custom"]}

(add the 4 armor pieces, custom_boots, custom_leggings, custom_chestplate, custom_helmet and for the other damaged set custom_boots1, custom_leggings1, etc... with the damage propertie) 6. finally launch minecraft get a command block and run: give @p minecraft:chainmail_helmet[minecraft:custom_model_data={strings:['custom']}] version used: 1.21.4-Optifine_HD_U_J3_pre13

Installation Method

I used the standalone.

Log Files/Crash Reports

https://pastebin.com/raw/4nZ2HmEZ

F3 Debug Screenshot

Image

Prior Testing

  • Does this happen in Vanilla without OptiFine?
  • Yes

Additional Information

Screenshots:

Image

Image

Image

Enderbod avatar Feb 04 '25 14:02 Enderbod

Can you post a test resource pack?

sp614x avatar Feb 04 '25 15:02 sp614x

test_resourcepack.zip this is the resource pack in question on the screenshots

Enderbod avatar Feb 04 '25 16:02 Enderbod

i can send the map if that can help? it has the armors ready and the durability

Enderbod avatar Feb 04 '25 16:02 Enderbod

Hello as i was continuing progressing on my resource pack i saw that half of my custom items didnt changed to their own model after being damaged, instead they are using the damaged texture of the regular sword just like the armors but some of them are still showing for some reason, i tried changing the paths and even put all of the files in one folder but still didn't work, i am using the lastest version (OptiFine 1.21.4_HD_U_J3)

Image

Here's another test resource pack for the damaged items: test_resourcepack.zip

For example run on a command block: give @p minecraft:iron_sword[minecraft:custom_model_data={strings:['lapis_war_scythe']},minecraft:damage=100] and you'll see that the item will not appear as my scythe item, also no error is appearing in the logs.

Image

Image

Enderbod avatar Feb 15 '25 18:02 Enderbod