tag @s remove BasicRevItems
execute as @s[nbt={Inventory:[{id:"minecraft:paper",tag:{kyusheet:1b}}]},scores={health=17..}] run tag @s add BasicRevItems
clear @s[tag=BasicRevItems] paper{kyusheet:1b} 1
#do void damage
tag @s[tag=BasicRevItems] add DoVoid

execute as @s[tag=BasicRevItems] run scoreboard players set @s KyuVoid -40
execute if entity @s[tag=BasicRevItems] run function zzzzdonotuse:misc/activatevoiddamage
give @s[tag=BasicRevItems] minecraft:paper{display:{Name:'{"text":"Torn Spell Page: Basic Revive"}',Lore:["\"Unlocks a spell when held.\""]},HideFlags:1,Enchantments:[{id:"minecraft:unbreaking",lvl:9s}]} 1
tag @s remove BasicRevItems








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