execute as @s[predicate=survivalplus:10chance] unless data entity @s equipment.chest.components."minecraft:enchantments" run item modify entity @s armor.head survivalplus:enchant22
execute as @s[predicate=survivalplus:20chance] unless data entity @s equipment.chest.components."minecraft:enchantments" run item modify entity @s armor.head survivalplus:enchant16

execute as @s[predicate=survivalplus:10chance] unless data entity @s equipment.chest.components."minecraft:enchantments" run item modify entity @s armor.chest survivalplus:enchant22
execute as @s[predicate=survivalplus:20chance] unless data entity @s equipment.chest.components."minecraft:enchantments" run item modify entity @s armor.chest survivalplus:enchant16

execute as @s[predicate=survivalplus:10chance] unless data entity @s equipment.legs.components."minecraft:enchantments" run item modify entity @s armor.legs survivalplus:enchant22
execute as @s[predicate=survivalplus:20chance] unless data entity @s equipment.legs.components."minecraft:enchantments" run item modify entity @s armor.legs survivalplus:enchant16

execute as @s[predicate=survivalplus:10chance] unless data entity @s equipment.feet.components."minecraft:enchantments" run item modify entity @s armor.feet survivalplus:enchant22
execute as @s[predicate=survivalplus:20chance] unless data entity @s equipment.feet.components."minecraft:enchantments" run item modify entity @s armor.feet survivalplus:enchant16

execute as @s[predicate=survivalplus:10chance] unless data entity @s equipment.mainhand.components."minecraft:enchantments" run item modify entity @s weapon.mainhand survivalplus:enchant22
execute as @s[predicate=survivalplus:20chance] unless data entity @s equipment.mainhand.components."minecraft:enchantments" run item modify entity @s weapon.mainhand survivalplus:enchant16