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/evolve_rec/iv_to_v

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/evolve_rec/iii_to_iv

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/evolve_rec/ii_to_iii

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