
# -> 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 crude string

# -> Tag as filled with leather
tag @s add OverlyRealistic.Block.WoodenRack_Status_Filled_Item_CrudeString
tag @s remove OverlyRealistic.Block.WoodenRack_Status_Filled_Item_NaturalFibers
tag @s remove OverlyRealistic.Block.WoodenRack_RequiresContinuousOperations

# -> Change item display to leather
execute on passengers run \
    loot replace entity @s[tag=OverlyRealistic.Block.WoodenRack_Item] contents loot overly_realistic:items/crude_string
execute on passengers run \
    data modify entity @s[tag=OverlyRealistic.Block.WoodenRack_Item] transformation.translation[1] set value -0.34f

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