execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{svm_ep.gauntlet:1b}}}}] unless score @s svm_ep.holding_gauntlet matches 1 unless score @s svm_ep.holding_gauntlet matches 3 run function svm_ep:items/gauntlet/activate_mainhand
execute as @s[nbt={Inventory:[{Slot:-106b,components:{"minecraft:custom_data":{svm_ep.gauntlet:1b}}}]}] unless score @s svm_ep.holding_gauntlet matches 2..3 run function svm_ep:items/gauntlet/activate_offhand
execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{svm_ep.gauntlet:1b}}}},scores={svm_ep.holding_gauntlet=2}] run scoreboard players set @s svm_ep.holding_gauntlet 3

execute as @s[scores={svm_ep.holding_gauntlet=1}] unless entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{svm_ep.gauntlet:1b}}}}] run function svm_ep:items/gauntlet/put_away
execute as @s[scores={svm_ep.holding_gauntlet=2}] unless entity @s[nbt={Inventory:[{Slot:-106b,components:{"minecraft:custom_data":{svm_ep.gauntlet:1b}}}]}] run function svm_ep:items/gauntlet/put_away
execute as @s[scores={svm_ep.holding_gauntlet=3}] unless entity @s[nbt={Inventory:[{Slot:-106b,components:{"minecraft:custom_data":{svm_ep.gauntlet:1b}}}]}] run scoreboard players set @s svm_ep.holding_gauntlet 1
execute as @s[scores={svm_ep.holding_gauntlet=3}] unless entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{svm_ep.gauntlet:1b}}}}] run scoreboard players set @s svm_ep.holding_gauntlet 2
