#Entity Data Component

1 messages · Page 1 of 1 (latest)

summer sapphire
#

Hi guys! I come from the 'old' school where components and markers didn't exist yet.

I'm trying to make a custom block, I don't actually even need the placing rotation, but I'm still using a item frame item.
I'm trying this new entity data components.
My item frame item is supposed to spawn a marker with tags. Yet, it just spawns a item frame (without tags).

Any help?

regal brook
#

Show your work

summer sapphire
#

I've done some testing

/give @s minecraft:item_frame[minecraft:entity_data={id:"minecraft:item_frame",Tags:["test"]}]
gives the expected result
/give @s minecraft:cow_spawn_egg[minecraft:entity_data={id:"minecraft:sheep",Tags:["test"]}]
gives the expected result
/give @s minecraft:item_frame[minecraft:entity_data={id:"minecraft:sheep",Tags:["test"]}]
gives a unexpected result -> the component is applied but the placed entity is a simple item frame (no tag)

I'll mark this as resolved tomorrow but it's not, I guess it's a mc bug or some weird but expected behaviour

regal brook
#

Seems like it, yep

crystal crescent
#

Then use an item frame
It's better anyways because you can track rotation

summer sapphire
#

I just wanted to try the new stuff