
# -> If count = 1 then set the item
execute if items entity @s weapon.mainhand stick[count=1] run \
    return run \
        loot replace entity @s weapon.mainhand loot overly_realistic:items/sharpened_stick

# -> Remove one item
item modify entity @s weapon.mainhand overly_realistic:multipurpose/remove_one_item

# -> Give sharpened stick
loot give @s loot overly_realistic:items/sharpened_stick
