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
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.
Yes! Also, I wonder if throwable items (snowball, etc.) could have it too? I can see some good uses for that aswell.
I don't think there is any good usecase for this?