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

# -> Tag change
tag @s add OverlyRealistic.Block.WoodenRack_Status_Empty
tag @s remove OverlyRealistic.Block.WoodenRack_Status_Filled
tag @s remove OverlyRealistic.Block.WoodenRack_Status_Filled_Item_Leather
tag @s remove OverlyRealistic.Block.WoodenRack_Status_Filled_Item_GoryHide
tag @s remove OverlyRealistic.Block.WoodenRack_Status_Filled_Item_Hide
tag @s remove OverlyRealistic.Block.WoodenRack_Status_Filled_Item_DousedHide
tag @s remove OverlyRealistic.Block.WoodenRack_Status_Filled_Item_NaturalFibers
tag @s remove OverlyRealistic.Block.WoodenRack_RequiresContinuousOperations

# -> Reset values
scoreboard players reset @s OverlyRealistic.World.WoodenRackScrapeGoryHideProgress
scoreboard players reset @s OverlyRealistic.General.ArbitraryData

# -> Drop items
execute on passengers \
    if entity @s[tag=OverlyRealistic.Block.WoodenRack_Item] run \
        function overly_realistic:general/custom_blocks/wooden_rack/drop_rack_item

