tag @s remove GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:32b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:33b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:34b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:35b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:36b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:37b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:38b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:39b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:40b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:41b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:42b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:43b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:44b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:45b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:46b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:47b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:48b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:49b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:50b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:51b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:52b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:53b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:54b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:55b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:56b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:57b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:58b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:59b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:60b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:61b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:62b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:63b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems
execute as @s[nbt={Inventory:[{id:"minecraft:gold_ingot",Count:64b}]},nbt={Inventory:[{id:"minecraft:blaze_powder"}]},nbt=!{Inventory:[{id:"minecraft:blaze_powder",Count:1b}]},scores={health=5..}] run tag @s add GiveLuckItems


clear @s[tag=GiveLuckItems] gold_ingot 32
clear @s[tag=GiveLuckItems] blaze_powder 2
#do void damage
tag @s[tag=GiveLuckItems] add DoVoid

execute as @s[tag=GiveLuckItems] run scoreboard players set @s KyuVoid -10
execute if entity @s[tag=GiveLuckItems] run function zzzzdonotuse:misc/activatevoiddamage
tag @s[tag=GiveLuckItems] add KyuLuck
tag @s remove GiveLuckItems








#tellraw @a[tag=!ImbueSpell,nbt={SelectedItem:{tag:{HideFlags:1,Enchantments:[{id:"minecraft:unbreaking",lvl:7s}],display:{Lore:["\"Unlocks a spell when held.\""]}}}}] ["",{"text":"You have unlocked the Blood Imbue spell! It is located on page 43 of your spellbook.","color":"dark_aqua"}]
#tag @a[tag=!ImbueSpell,nbt={SelectedItem:{tag:{HideFlags:1,Enchantments:[{id:"minecraft:unbreaking",lvl:7s}],display:{Lore:["\"Unlocks a spell when held.\""]}}}}] add ImbueSpell
#clear @a[tag=ImbueSpell,tag=!ImbueSpell2,nbt={SelectedItem:{tag:{HideFlags:1,Enchantments:[{id:"minecraft:unbreaking",lvl:7s}],display:{Lore:["\"Unlocks a spell when held.\""]}}}}] paper{HideFlags:1,Enchantments:[{id:"minecraft:unbreaking",lvl:7s}],display:{Lore:["\"Unlocks a spell when held.\""]}} 1
#tag @a[tag=ImbueSpell,tag=!ImbueSpell2] add ImbueSpell2
#
#tellraw @a[tag=!RageSpell,nbt={SelectedItem:{tag:{HideFlags:1,Enchantments:[{id:"minecraft:unbreaking",lvl:8s}],display:{Lore:["\"Unlocks a spell when held.\""]}}}}] ["",{"text":"You have unlocked the Blind Rage spell! It is located on page 44 of your spellbook.","color":"dark_aqua"}]
#tag @a[tag=!RageSpell,nbt={SelectedItem:{tag:{HideFlags:1,Enchantments:[{id:"minecraft:unbreaking",lvl:8s}],display:{Lore:["\"Unlocks a spell when held.\""]}}}}] add RageSpell
#clear @a[tag=RageSpell,tag=!RageSpell2,nbt={SelectedItem:{tag:{HideFlags:1,Enchantments:[{id:"minecraft:unbreaking",lvl:8s}],display:{Lore:["\"Unlocks a spell when held.\""]}}}}] paper{HideFlags:1,Enchantments:[{id:"minecraft:unbreaking",lvl:7s}],display:{Lore:["\"Unlocks a spell when held.\""]}} 1
#tag @a[tag=RageSpell,tag=!RageSpell2] add RageSpell2
#
#tellraw @a[tag=!BasicRevSpell,nbt={SelectedItem:{tag:{HideFlags:1,Enchantments:[{id:"minecraft:unbreaking",lvl:9s}],display:{Lore:["\"Unlocks a spell when held.\""]}}}}] ["",{"text":"You have unlocked the Basic Revive spell! It is located on page 32 of your spellbook.","color":"dark_aqua"}]
#tag @a[tag=!BasicRevSpell,nbt={SelectedItem:{tag:{HideFlags:1,Enchantments:[{id:"minecraft:unbreaking",lvl:9s}],display:{Lore:["\"Unlocks a spell when held.\""]}}}}] add BasicRevSpell
#clear @a[tag=BasicRevSpell,tag=!BasicRevSpell2,nbt={SelectedItem:{tag:{HideFlags:1,Enchantments:[{id:"minecraft:unbreaking",lvl:9s}],display:{Lore:["\"Unlocks a spell when held.\""]}}}}] paper{HideFlags:1,Enchantments:[{id:"minecraft:unbreaking",lvl:7s}],display:{Lore:["\"Unlocks a spell when held.\""]}} 1
#tag @a[tag=BasicRevSpell,tag=!BasicRevSpell2] add BasicRevSpell2
#