scoreboard players set @s souls 0

execute store result score n_items items_generic run clear @s wooden_sword{name:"crystal_sword"}
execute unless score n_items items_generic matches 0 run function items:weapon/crystal_sword/break_recursive

playsound custom.crystal_sword.break ambient @s ~ ~ ~
playsound custom.shard.break.layer2 ambient @s ~ ~ ~
