
# -> Add to value
scoreboard players add @s OverlyRealistic.General.ArbitraryData 1

# -> If value < 10 then return
execute unless score @s OverlyRealistic.General.ArbitraryData matches 10.. run \
    return fail

# --> Else, turn to leather

# -> Tag as filled with leather
tag @s add OverlyRealistic.Block.TanningRack_Status_Filled_Item_Leather

# -> Change item display to leather
data modify entity @n[type=item_display,tag=OverlyRealistic.Block.TanningRack_Item,distance=..0.5] item set value {id:"leather",components:{}}

# -> Reset value
scoreboard players set @s OverlyRealistic.General.ArbitraryData 0
