execute if items entity @s player.cursor minecraft:shears[minecraft:custom_data={ui_item:{shears:1b}}] run function pctf:logic/shop/buy/shears with storage pctf:shop item
execute if items entity @s player.cursor minecraft:stone_axe[minecraft:custom_data={ui_item:{axe:1b}}] run function pctf:logic/shop/buy/axe with storage pctf:shop item
execute if items entity @s player.cursor minecraft:leather_chestplate[minecraft:custom_data={ui_item:{upgrade_armor:1b}}] run function pctf:logic/shop/buy/upgrade/armor with storage pctf:shop item
execute if items entity @s player.cursor minecraft:wooden_sword[minecraft:custom_data={ui_item:{upgrade_melee:1b}}] run function pctf:logic/shop/buy/upgrade/melee with storage pctf:shop item

execute if items entity @s player.cursor minecraft:iron_sword[minecraft:custom_data={ui_item:{enchant_melee:1b}}] run function pctf:logic/shop/buy/enchant/melee with storage pctf:shop item
execute if items entity @s player.cursor minecraft:iron_chestplate[minecraft:custom_data={ui_item:{enchant_armor:1b}}] run function pctf:logic/shop/buy/enchant/armor with storage pctf:shop item
execute if items entity @s player.cursor minecraft:bow[minecraft:custom_data={ui_item:{enchant_ranged:1b}}] run function pctf:logic/shop/buy/enchant/ranged with storage pctf:shop item

execute if items entity @s player.cursor minecraft:white_wool[minecraft:custom_data={ui_item:{wool:1b}}] run function pctf:logic/shop/buy/wool with storage pctf:shop item
execute if items entity @s player.cursor minecraft:birch_planks[minecraft:custom_data={ui_item:{wood:1b}}] run function pctf:logic/shop/buy/wood with storage pctf:shop item

execute if items entity @s player.cursor minecraft:golden_apple[minecraft:custom_data={ui_item:{gold_apple:1b}}] run function pctf:logic/shop/buy/gold_apple with storage pctf:shop item

execute if items entity @s player.cursor minecraft:arrow[minecraft:custom_data={ui_item:{ammo:1b}}] run function pctf:logic/shop/buy/ammo with storage pctf:shop item
execute if items entity @s player.cursor minecraft:bread[minecraft:custom_data={ui_item:{bread:1b}}] run function pctf:logic/shop/buy/bread with storage pctf:shop item

execute if items entity @s player.cursor minecraft:potion[minecraft:custom_data={ui_item:{speed_potion:1b}}] run function pctf:logic/shop/buy/speed_potion with storage pctf:shop item
execute if items entity @s player.cursor minecraft:potion[minecraft:custom_data={ui_item:{invisibility_potion:1b}}] run function pctf:logic/shop/buy/invisibility_potion with storage pctf:shop item
execute if items entity @s player.cursor minecraft:potion[minecraft:custom_data={ui_item:{gravity_potion:1b}}] run function pctf:logic/shop/buy/gravity_potion with storage pctf:shop item

execute if items entity @s player.cursor minecraft:wind_charge[minecraft:custom_data={ui_item:{wind_charge:1b}}] run function pctf:logic/shop/buy/wind_charge with storage pctf:shop item
execute if items entity @s player.cursor minecraft:tripwire_hook[minecraft:custom_data={ui_item:{trap_kit:1b}}] run function pctf:logic/shop/buy/trap_kit with storage pctf:shop item
execute if items entity @s player.cursor minecraft:firework_star[minecraft:custom_data={ui_item:{wool_bomb:1b}}] run function pctf:logic/shop/buy/wool_bomb with storage pctf:shop item
execute if items entity @s player.cursor minecraft:firework_star[minecraft:custom_data={ui_item:{smoke_bomb:1b}}] run function pctf:logic/shop/buy/smoke_bomb with storage pctf:shop item

execute if items entity @s player.cursor minecraft:feather[minecraft:custom_data={ui_item:{launch_feather:1b}}] run function pctf:logic/shop/buy/launch_feather with storage pctf:shop item

execute if items entity @s player.cursor minecraft:zombie_spawn_egg[minecraft:custom_data={ui_item:{zombie_snowball:1b}}] run function pctf:logic/shop/buy/zombie_snowball with storage pctf:shop item
execute if items entity @s player.cursor minecraft:zombie_spawn_egg[minecraft:custom_data={ui_item:{mega_zombie_snowball:1b}}] run function pctf:logic/shop/buy/mega_zombie_snowball with storage pctf:shop item
execute if items entity @s player.cursor minecraft:fire_charge[minecraft:custom_data={ui_item:{flamethrower:1b}}] run function pctf:logic/shop/buy/flamethrower with storage pctf:shop item

execute if items entity @s player.cursor minecraft:flow_pottery_sherd[minecraft:custom_data={ui_item:{reroll_scrolls:1b}}] run function pctf:logic/shop/buy/upgrade/scrolls with storage pctf:shop item

execute if items entity @s player.cursor minecraft:honeycomb[minecraft:custom_data={ui_item:{honey_pack:1b}}] run function pctf:logic/shop/buy/honey_pack with storage pctf:shop item

execute if items entity @s player.cursor minecraft:potion[minecraft:custom_data={ui_item:{knockback_resistance_potion:1b}}] run function pctf:logic/shop/buy/knockback_resistance_potion with storage pctf:shop item

execute if items entity @s player.cursor minecraft:tnt[minecraft:custom_data={ui_item:{tnt:1b}}] run function pctf:logic/shop/buy/tnt with storage pctf:shop item

clear @s *[custom_data~{ui_item:{}}]