advancement revoke @s only vb:technical/soul_chalice_wraith_mainhand
advancement revoke @s only vb:technical/soul_chalice_wraith_offhand

execute if items entity @s weapon.mainhand *[minecraft:custom_data~{"vb.item.soul_chalice":1b}] run function vb:tick_player/custom_item/soul_chalice/fill_souls {slot:mainhand}
execute unless items entity @s weapon.mainhand *[minecraft:custom_data~{"vb.item.soul_chalice":1b}] run function vb:tick_player/custom_item/soul_chalice/fill_souls {slot:offhand}