
# -> Remove data
data remove entity @s item.components

# -> Add to husbandry & cookery XP
execute on origin run \
    function overly_realistic:players/wisdom/conjoined/husbandry_and_cookery/add_to_skill_xp_c_wash_crops

# -> Set new name
execute if items entity @s contents potato run \
    return run \
        item modify entity @s contents overly_realistic:food_dirtyness/clean_potato
execute if items entity @s contents carrot run \
    return run \
        item modify entity @s contents overly_realistic:food_dirtyness/clean_carrot
execute if items entity @s contents beetroot run \
    return run \
        item modify entity @s contents overly_realistic:food_dirtyness/clean_beetroot
