
# -> Create item
summon item ~0.5 ~0.5 ~0.5 {Tags:["OverlyRealistic.TempEnt_GiftItem"],Item:{id:"brick",count:1}}
execute on vehicle \
    if score @s OverlyRealistic.General.ArbitraryData matches 1 \
    on passengers run \
        item modify entity @s contents overly_realistic:items/set_gift_has_item
item replace entity @n[type=item,tag=OverlyRealistic.TempEnt_GiftItem,dx=0,dy=0,dz=0] contents from entity @s contents
execute on vehicle \
    if score @s OverlyRealistic.General.ArbitraryData matches 1 run \
        data modify entity @n[type=item,tag=OverlyRealistic.TempEnt_GiftItem,dx=0,dy=0,dz=0] Item.components."minecraft:entity_data".data.gift_content_item set from entity @s data.gift_content_item
tag @n[type=item,tag=OverlyRealistic.TempEnt_GiftItem,dx=0,dy=0,dz=0] remove OverlyRealistic.TempEnt_GiftItem

# -> Remove display
kill @s
