function survivalplus:tools/upgrade_effect
item modify entity @s weapon.mainhand survivalplus:unbreakable
item modify entity @s weapon.offhand survivalplus:unbreakable
execute if data entity @s SelectedItem.components."minecraft:custom_data".unbreakable run item replace entity @s weapon.mainhand with air
execute if data entity @s equipment.offhand.components."minecraft:custom_data".unbreakable run item replace entity @s weapon.offhand with air