## Check both slots to run custom item functions in
execute if items entity @s weapon.mainhand *[custom_data~{vb.item:1b}] run function vb:tick_player/custom_item_get {slot:mainhand}
execute if items entity @s weapon.offhand *[custom_data~{vb.item:1b}] run function vb:tick_player/custom_item_get {slot:offhand}

## Server items
# Bundles
execute if items entity @s weapon.mainhand *[custom_data~{vb.item.server_item.bundle:1b}] run function vb:tick_player/custom_item/server_item/bundle
# Talismans
execute if items entity @s weapon.offhand *[custom_data~{vb.item.server_item.talisman:1b}] run function vb:tick_player/custom_item/server_item/talisman