
# -> Remove interaction data
data remove entity @s interaction

# -> If tanning rack has leather then return
execute if entity @s[tag=OverlyRealistic.Block.TanningRack_Status_Filled_Item_Leather] run \
    return fail

# -> Sound
playsound item.armor.equip_leather block @a ~ ~ ~ 0.5 2

# -> Add to tanning value on RNG
execute if predicate overly_realistic:world/tanning_rack/wood_interaction_rng run \
    function overly_realistic:general/custom_blocks/tanning_rack/tanning_rack_add_to_tanning
