execute as @s run function zzzzdonotuse:spell/imbuemodify/checkadstatslot
scoreboard players set @s ADCheck -100
execute as @s[tag=FoundADTag0] run execute store result score @s ADCheck run data get entity @s Item.tag.AttributeModifiers[0].Amount
execute as @s[tag=FoundADTag1] run execute store result score @s ADCheck run data get entity @s Item.tag.AttributeModifiers[1].Amount
execute as @s[tag=FoundADTag2] run execute store result score @s ADCheck run data get entity @s Item.tag.AttributeModifiers[2].Amount
execute as @s[tag=FoundADTag3] run execute store result score @s ADCheck run data get entity @s Item.tag.AttributeModifiers[3].Amount
execute as @s[tag=FoundADTag4] run execute store result score @s ADCheck run data get entity @s Item.tag.AttributeModifiers[4].Amount
execute as @s[tag=FoundADTag5] run execute store result score @s ADCheck run data get entity @s Item.tag.AttributeModifiers[5].Amount
execute as @s[tag=FoundADTag6] run execute store result score @s ADCheck run data get entity @s Item.tag.AttributeModifiers[6].Amount
execute as @s[tag=FoundADTag7] run execute store result score @s ADCheck run data get entity @s Item.tag.AttributeModifiers[7].Amount
execute as @s[tag=FoundADTag8] run execute store result score @s ADCheck run data get entity @s Item.tag.AttributeModifiers[8].Amount
execute as @s[scores={ADCheck=-100}] run function zzzzdonotuse:spell/imbuemodify/setmodifiers
#execute as @s[nbt=!{Item:{tag:{diamondnetherarmorkyu:1b}}}] run function zzzzdonotuse:modifyarmor/setdiamondnetheritetag


execute as @s run function zzzzdonotuse:spell/imbuemodify/setstats


