execute if items entity @s weapon.mainhand *[custom_data~{fireball_scroll:1b}] run function pctf:logic/items/scrolls/fireball/summon
execute if items entity @s weapon.mainhand *[custom_data~{shield_scroll:1b}] run function pctf:logic/items/scrolls/shield/summon
execute if items entity @s weapon.mainhand *[custom_data~{parry_scroll:1b}] run function pctf:logic/items/scrolls/parry/summon
execute if items entity @s weapon.mainhand *[custom_data~{frost_ray_scroll:1b}] run function pctf:logic/items/scrolls/frost_ray/summon
execute if items entity @s weapon.mainhand *[custom_data~{black_hole_scroll:1b}] run function pctf:logic/items/scrolls/black_hole/summon
execute if items entity @s weapon.mainhand *[custom_data~{invulnerability_scroll:1b}] run function pctf:logic/items/scrolls/invulnerability/summon
execute if items entity @s weapon.mainhand *[custom_data~{magic_missile_scroll:1b}] run function pctf:logic/items/scrolls/magic_missile/summon
execute if items entity @s weapon.mainhand *[custom_data~{poison_ray_scroll:1b}] run function pctf:logic/items/scrolls/poison_ray/summon
execute if items entity @s weapon.mainhand *[custom_data~{blink_scroll:1b}] run function pctf:logic/items/scrolls/blink/summon
execute if items entity @s weapon.mainhand *[custom_data~{ethereal_blade_scroll:1b}] run function pctf:logic/items/scrolls/ethereal_blade/summon
execute if items entity @s weapon.mainhand *[custom_data~{inferno_ray_scroll:1b}] run function pctf:logic/items/scrolls/inferno_ray/summon
execute if items entity @s weapon.mainhand *[custom_data~{silence_beam_scroll:1b}] run function pctf:logic/items/scrolls/silence_beam/summon
execute if items entity @s weapon.mainhand *[custom_data~{time_warp_scroll:1b}] run function pctf:logic/items/scrolls/time_warp/trigger
execute if items entity @s weapon.mainhand *[custom_data~{shadow_burst_scroll:1b}] run function pctf:logic/items/scrolls/shadow_burst/summon
execute if items entity @s weapon.mainhand *[custom_data~{illusory_bridge_scroll:1b}] run function pctf:logic/items/scrolls/illusory_bridge/summon
execute if items entity @s weapon.mainhand *[custom_data~{soul_beam_scroll:1b}] run function pctf:logic/items/scrolls/soul_beam/summon