item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:0b}]}] hotbar.0 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:1b}]}] hotbar.1 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:2b}]}] hotbar.2 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:3b}]}] hotbar.3 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:4b}]}] hotbar.4 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:5b}]}] hotbar.5 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:6b}]}] hotbar.6 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:7b}]}] hotbar.7 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:8b}]}] hotbar.8 with air
item replace entity @s armor.head with air
item replace entity @s armor.chest with air
item replace entity @s armor.legs with air
item replace entity @s armor.feet with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:-106b}]}] weapon.offhand with air
item replace entity @s[nbt=!{SelectedItem:{tag:{display:{Lore:["\"A book of spells\""]}}}}] weapon.mainhand with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:9b}]}] inventory.0 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:10b}]}] inventory.1 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:11b}]}] inventory.2 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:12b}]}] inventory.3 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:13b}]}] inventory.4 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:14b}]}] inventory.5 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:15b}]}] inventory.6 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:16b}]}] inventory.7 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:17b}]}] inventory.8 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:18b}]}] inventory.9 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:19b}]}] inventory.10 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:20b}]}] inventory.11 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:21b}]}] inventory.12 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:22b}]}] inventory.13 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:23b}]}] inventory.14 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:24b}]}] inventory.15 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:25b}]}] inventory.16 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:26b}]}] inventory.17 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:27b}]}] inventory.18 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:28b}]}] inventory.19 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:29b}]}] inventory.20 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:30b}]}] inventory.21 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:31b}]}] inventory.22 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:32b}]}] inventory.23 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:33b}]}] inventory.24 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:34b}]}] inventory.25 with air
item replace entity @s[nbt=!{Inventory:[{id:"minecraft:written_book",tag:{display:{Lore:["\"A book of spells\""]}},Slot:35b}]}] inventory.26 with air