summon area_effect_cloud ~1.5 ~.6 ~1.5 {Particle:{type:electric_spark},Potion:empty,Radius:1.8,Duration:2}
execute if entity @e[dz=2,dx=2,type=player] if score challenge hardmode matches 1 run function survivalplus:giant_deal/convert/quitchall
execute if entity @e[dz=2,dx=2,type=player,predicate=survivalplus:curse_equipped] run function survivalplus:giant_deal/convert/remove_armor_curse
execute if entity @e[dz=2,dx=2,nbt={Item:{components:{"minecraft:enchantments":{"minecraft:binding_curse":1}}}}] run function survivalplus:giant_deal/convert/remove_item_curse
execute if entity @e[dz=2,dx=2,nbt={Item:{components:{"minecraft:custom_data":{convertbook:tag}}}}] run function survivalplus:giant_deal/convert/cursebook
#execute if entity @e[dz=2,dx=2,nbt={Item:{components:{"minecraft:custom_data":{curse_book:tag}}}}] unless score Titan hardmode matches 1.. run function survivalplus:giant_deal/convert/titanbook
execute if entity @e[dz=2,dx=2,nbt={Item:{components:{"minecraft:custom_data":{guidebook:tag}}}},tag=!itemguard] run function survivalplus:giant_deal/convert/wikibook
#remove curse is in ondeath function
#execute if entity @e[dz=2,dx=2,tag=boss] run function survivalplus:giant_deal/convert/boss
#lucky foot trinket
#book from backrooms   lore book
execute if entity @e[dz=2,dx=2,nbt={Item:{components:{"minecraft:custom_data":{formless:tag}}}}] run function survivalplus:giant_deal/convert/sword
#dragon egg
#nether star
execute if entity @e[dz=2,dx=2,nbt={Item:{id:knowledge_book}},tag=!itemguard] run function survivalplus:giant_deal/convert/necro
#sharpening stone to armor polish
#glow berry to gold berry