tag @s remove CForgeItems
execute as @s[scores={health=5..}] run tag @s add CForgeItems
#do void damage
tag @s[tag=CForgeItems] add DoVoid

execute as @s[tag=CForgeItems] run scoreboard players set @s KyuVoid -10
execute if entity @s[tag=CForgeItems] run function zzzzdonotuse:misc/activatevoiddamage
give @s[tag=CForgeItems] dispenser{display:{Name:'{"color":"#9C0001","text":"Crafting Forge"}'},HideFlags:1,kyuforge:1b,Enchantments:[{id:"minecraft:aqua_affinity",lvl:1s}],BlockEntityTag:{CustomName:'{"color":"#9C0001","text":"Crafting Forge"}'}} 1
tag @s remove CForgeItems








#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
#