execute as @e[tag=crystalmerchant,nbt={HurtTime:10s}] run function survivalplus:merchants/delcrysmerc
advancement revoke @s only survivalplus:tools/deletecrysmerc
advancement revoke @s only survivalplus:tools/deletecrysmerc2