# Check if someone has worn the full set (Abyssium Set)
execute if entity @a[nbt={Inventory:[{id:"minecraft:player_head",Slot:103b,components:{"minecraft:custom_data":{abyssium_helmet:1b}}},{id:"minecraft:netherite_chestplate",Slot:102b,components:{"minecraft:custom_data":{abyssium_chestplate:1b}}},{id:"minecraft:netherite_leggings",Slot:101b,components:{"minecraft:custom_data":{abyssium_greaves:1b}}},{id:"minecraft:netherite_boots",Slot:100b,components:{"minecraft:custom_data":{abyssium_sabatons:1b}}}]}] if score abyssium_set_bonus Custom_Armor_Set_Bonus matches 0 unless score abyssium_set_bonus Custom_Armor_Set_Bonus matches 1 run scoreboard players set abyssium_set_bonus Custom_Armor_Set_Bonus 1
execute if score abyssium_set_bonus Custom_Armor_Set_Bonus matches 1 unless score abyssium_set_bonus Custom_Armor_Set_Bonus matches 0 run scoreboard players set abyssium_set_bonus Custom_Armor_Set_Bonus 2
# Abyssium Set FX
execute if entity @a[nbt={Inventory:[{id:"minecraft:player_head",Slot:103b,components:{"minecraft:custom_data":{abyssium_helmet:1b}}},{id:"minecraft:netherite_chestplate",Slot:102b,components:{"minecraft:custom_data":{abyssium_chestplate:1b}}},{id:"minecraft:netherite_leggings",Slot:101b,components:{"minecraft:custom_data":{abyssium_greaves:1b}}},{id:"minecraft:netherite_boots",Slot:100b,components:{"minecraft:custom_data":{abyssium_sabatons:1b}}}]}] as @a[nbt={Inventory:[{id:"minecraft:player_head",Slot:103b,components:{"minecraft:custom_data":{abyssium_helmet:1b}}},{id:"minecraft:netherite_chestplate",Slot:102b,components:{"minecraft:custom_data":{abyssium_chestplate:1b}}},{id:"minecraft:netherite_leggings",Slot:101b,components:{"minecraft:custom_data":{abyssium_greaves:1b}}},{id:"minecraft:netherite_boots",Slot:100b,components:{"minecraft:custom_data":{abyssium_sabatons:1b}}}]}] at @s run function kiwi2:reward_chest/day_40_59/abyssal_set_fx

# Check if someone has worn the full set (Eternium Set)
execute if entity @a[nbt={Inventory:[{id:"minecraft:player_head",Slot:103b,components:{"minecraft:custom_data":{eternium_mask:1b}}},{id:"minecraft:iron_chestplate",Slot:102b,components:{"minecraft:custom_data":{eternium_chestplate:1b}}},{id:"minecraft:iron_leggings",Slot:101b,components:{"minecraft:custom_data":{eternium_leggings:1b}}},{id:"minecraft:iron_boots",Slot:100b,components:{"minecraft:custom_data":{eternium_boots:1b}}}]}] if score eternium_set_bonus Custom_Armor_Set_Bonus matches 0 unless score eternium_set_bonus Custom_Armor_Set_Bonus matches 1 run scoreboard players set eternium_set_bonus Custom_Armor_Set_Bonus 1
execute if score eternium_set_bonus Custom_Armor_Set_Bonus matches 1 unless score eternium_set_bonus Custom_Armor_Set_Bonus matches 0 run scoreboard players set eternium_set_bonus Custom_Armor_Set_Bonus 2
# Eternium Set FX
execute if entity @a[nbt={Inventory:[{id:"minecraft:player_head",Slot:103b,components:{"minecraft:custom_data":{eternium_mask:1b}}},{id:"minecraft:iron_chestplate",Slot:102b,components:{"minecraft:custom_data":{eternium_chestplate:1b}}},{id:"minecraft:iron_leggings",Slot:101b,components:{"minecraft:custom_data":{eternium_leggings:1b}}},{id:"minecraft:iron_boots",Slot:100b,components:{"minecraft:custom_data":{eternium_boots:1b}}}]}] as @a[nbt={Inventory:[{id:"minecraft:player_head",Slot:103b,components:{"minecraft:custom_data":{eternium_mask:1b}}},{id:"minecraft:iron_chestplate",Slot:102b,components:{"minecraft:custom_data":{eternium_chestplate:1b}}},{id:"minecraft:iron_leggings",Slot:101b,components:{"minecraft:custom_data":{eternium_leggings:1b}}},{id:"minecraft:iron_boots",Slot:100b,components:{"minecraft:custom_data":{eternium_boots:1b}}}]}] at @s run function kiwi2:reward_chest/day_40_59/eternium_set_fx

# Malachite Set
execute if entity @a[nbt={Inventory:[{id:"minecraft:player_head",Slot:103b,components:{"minecraft:custom_data":{malachite_bascinet:1b}}},{id:"minecraft:leather_chestplate",Slot:102b,components:{"minecraft:custom_data":{malachite_chestplate:1b}}},{id:"minecraft:leather_leggings",Slot:101b,components:{"minecraft:custom_data":{malachite_leggings:1b}}},{id:"minecraft:leather_boots",Slot:100b,components:{"minecraft:custom_data":{malachite_boots:1b}}}]}] as @a[nbt={Inventory:[{id:"minecraft:player_head",Slot:103b,components:{"minecraft:custom_data":{malachite_bascinet:1b}}},{id:"minecraft:leather_chestplate",Slot:102b,components:{"minecraft:custom_data":{malachite_chestplate:1b}}},{id:"minecraft:leather_leggings",Slot:101b,components:{"minecraft:custom_data":{malachite_leggings:1b}}},{id:"minecraft:leather_boots",Slot:100b,components:{"minecraft:custom_data":{malachite_boots:1b}}}]}] at @s run function kiwi2:reward_chest/day_40_59/malachite_set_fx