mojira.dev
MC-123289

EntityTag doesn't work on all items summoning entities

Some items summoning an entity when used don't apply the EntityTag tag to the summoned entity.

Affected items

  • Item Frames (19w07a)

  • Paintings (19w07a)

  • Minecarts

  • Boats

  • End Crystals

  • Fireworks

  • Throwable items (Ender Pearl, Snowball, ...) (Should also work with dispensers) (Lingering potions could have their changes stored in themselves as thrown potions aswell as in the area effect cloud they will summon)

  • Arrows (If an arrow item is being used which has the tag)

  • Leads (

  • Maybe even fishing bobbers when summoned using a rod which has the tag (for consistency)

How to reproduce

  • Run the command:

    /give @s oak_boat{EntityTag:{Tags:["test"]}}

    -> ❌ When placed, the entity summoned does not have the tag test.

Original Description

I'm not sure if this is just a bug or works as intended but I noticed that giving item frames an "EntityTag" tag won't apply any changes when you place them.

I feel like all items summoning entities should support the "EntityTag" tag. I don't see why it should only work for armor stands & spawn eggs. It can be useful for all entities.

Linked issues

Attachments

Comments 33

I don't think there is any good usecase for this?

Well, I'd use it to target the blockspace you placed this item frame in. So you could use it to place different blocks based on its nbt-data. I'd use it for a vanilla mod in which I don't want to retexture any blocks but have entities act like the "custom blocks". I'd just put a durability affected item on an armor stand's head and retexture the item based on its damage value. Since you're now able to place item frames on the ceiling/floor this would be even more useful.

Another thing to mention: armor stands can't be placed in a 1 block high space. They always need at least 2 blocks. This is where item frames come in handy. And the issue with spawn eggs: You can use them to overwrite mob spawners which would ruin a survival world.

So an item frame would be the perfect target entity in this case.

Thanks! we'll look into it 🙂

Small suggestion in that case: do it for paintings too, to make it consistent.

Yes! Also, I wonder if throwable items (snowball, etc.) could have it too? I can see some good uses for that aswell.

23 more comments

Can confirm in 1.17.

Can confirm in 1.18.2 and 22w13a.

[media]

Can confirm in 1.19.

Can confirm in 1.19.2.

Teixon

(Unassigned)

Confirmed

Platform

Low

Commands

EntityTag, entity, item, tag

Minecraft 1.12.2, Minecraft 17w50a, Minecraft 18w02a, Minecraft 18w03b, Minecraft 18w05a, ..., 1.19.3, 23w05a, 1.19.4, 23w14a, 1.20.1

Retrieved