advancement revoke @s only sanguine:technical/inventory_changed/butcher_skull/unequip

data remove storage sanguine:storage root.temp
function sanguine:item/butcher_skull/unequip/get_nbt

loot replace entity @s[nbt={Inventory:[{Slot:0b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.0 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:1b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.1 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:2b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.2 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:3b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.3 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:4b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.4 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:5b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.5 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:6b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.6 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:7b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.7 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:8b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.8 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:9b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.9 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:10b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.10 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:11b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.11 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:12b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.12 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:13b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.13 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:14b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.14 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:15b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.15 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:16b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.16 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:17b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.17 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:18b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.18 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:19b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.19 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:20b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.20 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:21b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.21 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:22b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.22 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:23b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.23 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:24b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.24 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:25b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.25 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:26b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.26 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:27b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.27 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:28b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.28 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:29b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.29 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:30b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.30 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:31b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.31 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:32b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.32 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:33b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.33 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:34b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.34 loot sanguine:technical/copy_nbt/leather_helmet
loot replace entity @s[nbt={Inventory:[{Slot:35b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] container.35 loot sanguine:technical/copy_nbt/leather_helmet
#loot replace entity @s[nbt={Inventory:[{Slot:-106b,id:"minecraft:warped_fungus_on_a_stick",tag:{sanguine:{id:"butcher_skull"}}}]}] weapon.offhand loot sanguine:technical/copy_nbt/leather_helmet

execute unless predicate sanguine:item/wearing/butcher_skull run tag @s remove sanguine.has_butcher_skull
