mojira.dev
MC-278317

Some entities don't count towards the "context_entity_type" property

When applying a special model to an item and it's displayed by one of the following entities, the item still uses the fallback model.

Attached is also an image and a test pack that shows the model does get changed if a different entity is marked as the holder type (in this case, a husk).

pack on:

[media]

pack off:

[media]

Affected entity types:

  • minecraft:firework_rocket

  • minecraft:item

  • minecraft:item_frame

  • minecraft:glow_item_frame

  • minecraft:snowball

  • minecraft:egg

  • minecraft:eye_of_ender

  • minecraft:ender_pearl

  • minecraft:experience_bottle

  • minecraft:small_fireball

  • minecraft:potion

  • minecraft:fireball

How to reproduce:

  1. Load the attached resource pack (

[media]
  1. ).

  2. Summon a husk holding one of the above items by executing the following command:

    /summon minecraft:husk ~ ~ ~ {HandItems:[{id:"minecraft:snowball",count:1},{}]}

    → ✔ The snowball held by the husk uses the model specified by the resource pack.

  3. Throw a snowball, or summon one that can't move by executing the following command:

    /summon minecraft:snowball ~ ~ ~ {NoGravity:1b}

    → ❌ The snowball uses the fallback model.

Linked issues

Attachments

Comments 1

Updated the images and example pack to use context_entity_type and to have item frames and glow item frames in it as well

as well as making the models be the normal item it represents with a green tint rather than all being emerald ore

DMgaming100

(Unassigned)

Confirmed

Platform

Low

Resource Packs

24w46a, 1.21.4 Pre-Release 1, 1.21.4 Pre-Release 2, 1.21.4 Pre-Release 3, 1.21.4 Release Candidate 2, ..., 25w02a, 25w05a, 1.21.5, 25w18a, 1.21.6

Retrieved