mojira.dev
MC-301424

entity_data item component detection is broken in resource packs

In 1.21.8 its possible to change item models/textures via component detection in resource packs. For items that carry the entity_data component in them, this now results in a missing model error for the item instead of previous behavior of using a fallback model if something was wrong.

Steps to reproduce:
1- Install the attached resource pack and open a world in 25w34b, or 25w35a
2- Look at Item Frames in the creative inventory
3- Run the command /give @s item_frame[entity_data={id:"minecraft:item_frame",Invisible:1b}] 1
4- Repeat steps 1-3 in 1.21.8 and notice the missing model error doesn't happen

Expected Result:
The item frames with differing component data should be visually distinct, like in 1.21.8

Actual Result:
All item frame items use the missing model/texture error cube

Attachments

Comments 2

Not fixed as of 1.21.9 rc-1

Hi, thanks for the report! 🙂 It looks like there is a remaining issue here with the SNBT form of entity data - I’ve reopened the issue as this should be addressed, but you should be able to work around it for now by updating the selector syntax:

"when": {
  "id": "minecraft:item_frame",
  "Invisible": true
}

Cubeoidal

gegy

Confirmed

Platform

Normal

Resource Packs

25w34b, 25w35a, 25w36b

1.21.9 Pre-Release 1

Retrieved