execute store result score n_items items_generic run clear @s wooden_sword{name:"soul_sword_ii"}
execute unless score n_items items_generic matches 0 run function items:weapon/soul_sword/unevolve_rec/ii_to_i

execute store result score n_items items_generic run clear @s wooden_sword{name:"soul_sword_iii"}
execute unless score n_items items_generic matches 0 run function items:weapon/soul_sword/unevolve_rec/iii_to_ii

execute store result score n_items items_generic run clear @s wooden_sword{name:"soul_sword_iv"}
execute unless score n_items items_generic matches 0 run function items:weapon/soul_sword/unevolve_rec/iv_to_iii

execute store result score n_items items_generic run clear @s wooden_sword{name:"soul_sword_v"}
execute unless score n_items items_generic matches 0 run function items:weapon/soul_sword/unevolve_rec/v_to_iv

scoreboard players set @s souls 0
