optifine icon indicating copy to clipboard operation
optifine copied to clipboard

[1.21.1 pre9 CIT] CIT components that use an array/list (like suspicious stew) do not function

Open SeaOfPixels opened this issue 1 year ago • 3 comments

Description of Issue

Attempting to give CIT components to components that use an array/list (like suspicious stew) does not display the CIT in-game.

Steps to Reproduce

  1. Open Minecraft
  2. Enable resource pack in the resource packs menu that contains CIT suspicious stew
  3. View the items in-game

OptiFine Version

OptiFine 1.21.1_HD_U_J1_pre9

Properties file

The .* should be accounting for the array, but it doesn't work:

type=item
items=suspicious_stew
components.suspicious_stew_effects.*.id=minecraft:blindness

Other component line variants attempted that don't work: components.suspicious_stew_effects.id.*=minecraft:blindness components.suspicious_stew_effects=minecraft:blindness components.suspicious_stew_effects.id=minecraft:blindness

Screenshots

What it's supposed to look like when applying in-game: 2024-09-07_16 54 22

What it looks like due to not applying in-game: 2024-09-07_16 55 54

SeaOfPixels avatar Sep 07 '24 23:09 SeaOfPixels

Closing, the line components.suspicious_stew_effects:[{id:"minecraft:wither"}] works for array/list components.

SeaOfPixels avatar Sep 08 '24 01:09 SeaOfPixels

this is still a bug. your one that works is a workaround, not the intended solution

ewanhowell5195 avatar Sep 13 '24 15:09 ewanhowell5195

Currently the wildcard * only works for the last component. Another workaround is: components.suspicious_stew_effects.0.id=minecraft:blindness

sp614x avatar Sep 14 '24 22:09 sp614x

Fixed wildcard * to work in all components, coming in next preview.

sp614x avatar Sep 16 '24 10:09 sp614x