
# -> If basket is empty then return
execute unless score @s OverlyRealistic.World.BlockItemAmount matches 1.. run \
    return fail

# -> Add to stir value
scoreboard players add @s OverlyRealistic.World.BasketStirAmount 3

# -> Clamp value
scoreboard players set @s[scores={OverlyRealistic.World.BasketStirAmount=101..}] OverlyRealistic.World.BasketStirAmount 100

# -> Globalize value
scoreboard players operation #or.basket_stir_value OverlyRealistic.General.ArbitraryData = @s OverlyRealistic.World.BasketStirAmount

# -> Display value to player
execute on target run \
    function overly_realistic:general/custom_blocks/basket/interactions/int_stir_subtitle
