tag @s remove DoImbueCheck
tag @s[nbt={Inventory:[{id:"minecraft:netherite_axe",Slot:-106b}]}] add DoImbueCheck
tag @s[nbt={Inventory:[{id:"minecraft:netherite_sword",Slot:-106b}]}] add DoImbueCheck
tag @s[nbt={Inventory:[{id:"minecraft:iron_axe",Slot:-106b}]}] add DoImbueCheck
tag @s[nbt={Inventory:[{id:"minecraft:iron_sword",Slot:-106b}]}] add DoImbueCheck
tag @s[nbt={Inventory:[{id:"minecraft:diamond_axe",Slot:-106b}]}] add DoImbueCheck
tag @s[nbt={Inventory:[{id:"minecraft:diamond_sword",Slot:-106b}]}] add DoImbueCheck
tag @s[nbt={Inventory:[{id:"minecraft:golden_axe",Slot:-106b}]}] add DoImbueCheck
tag @s[nbt={Inventory:[{id:"minecraft:golden_sword",Slot:-106b}]}] add DoImbueCheck
tag @s[nbt={Inventory:[{id:"minecraft:stone_axe",Slot:-106b}]}] add DoImbueCheck
tag @s[nbt={Inventory:[{id:"minecraft:stone_sword",Slot:-106b}]}] add DoImbueCheck
tag @s[nbt={Inventory:[{id:"minecraft:wooden_axe",Slot:-106b}]}] add DoImbueCheck
tag @s[nbt={Inventory:[{id:"minecraft:wooden_sword",Slot:-106b}]}] add DoImbueCheck
tag @s[nbt={Inventory:[{id:"minecraft:bread",Slot:-106b}]}] add DoImbueCheck
tellraw @s[nbt={Inventory:[{id:"minecraft:bread",Slot:-106b}]}] ["",{"text":"Ah, imbuing bread? A player of culture, I see.","color":"dark_aqua","italic":true}]
execute as @s[tag=DoImbueCheck] run execute at @s run function zzzzdonotuse:spell/bloodimbue
execute if entity @s[tag=DoImbueCheck] run data merge block ~ ~2 ~ {auto:1b}
tellraw @s[tag=!DoImbueCheck] ["",{"text":"You do not have an eligible item in your offhand.","color":"yellow"}]
tag @s remove DoImbueCheck