[1.21.1 pre9 CIT] CIT components that use an array/list (like suspicious stew) do not function
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
- Open Minecraft
- Enable resource pack in the resource packs menu that contains CIT suspicious stew
- 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:
What it looks like due to not applying in-game:
Closing, the line components.suspicious_stew_effects:[{id:"minecraft:wither"}] works for array/list components.
this is still a bug. your one that works is a workaround, not the intended solution
Currently the wildcard * only works for the last component.
Another workaround is:
components.suspicious_stew_effects.0.id=minecraft:blindness
Fixed wildcard * to work in all components, coming in next preview.