
# -> Sound
playsound minecraft:item.armor.equip_leather block @a ~ ~ ~ 0.45 0.5

# -> Tag change
tag @s add OverlyRealistic.Block.TanningRack_Status_Empty
tag @s remove OverlyRealistic.Block.TanningRack_Status_Filled
tag @s remove OverlyRealistic.Block.TanningRack_Status_Filled_Item_Leather

# -> Create item
summon item ~ ~ ~ {Tags:["OverlyRealistic.TempEnt"],Item:{id:"rabbit_hide",count:1}}

# -> Operate on item
execute as @n[type=item,tag=OverlyRealistic.TempEnt,distance=..1] run \
    function overly_realistic:general/custom_blocks/tanning_rack/temp_item_create

# -> Remove item
kill @n[type=item_display,tag=OverlyRealistic.Block.TanningRack_Item,distance=..0.5]
