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

execute as @s[tag=RandSpItems] run loot give @s loot minecraft:blooddeals/justpages
execute as @s[tag=RandSpItems] run loot give @s loot minecraft:blooddeals/justpages
execute as @s[tag=RandSpItems] run scoreboard players set @s KyuVoid -20
execute if entity @s[tag=RandSpItems] run function zzzzdonotuse:misc/activatevoiddamage

tag @s remove RandSpItems
