execute store result score #rand temp run random value 1..16

execute if score #rand temp matches 1 run function pctf:logic/items/lucky_block/outcomes/positive/solo/scrolls/fireball
execute if score #rand temp matches 2 run function pctf:logic/items/lucky_block/outcomes/positive/solo/scrolls/frost_ray
execute if score #rand temp matches 3 run function pctf:logic/items/lucky_block/outcomes/positive/solo/scrolls/shield
execute if score #rand temp matches 4 run function pctf:logic/items/lucky_block/outcomes/positive/solo/scrolls/parry
execute if score #rand temp matches 5 run function pctf:logic/items/lucky_block/outcomes/positive/solo/scrolls/black_hole
execute if score #rand temp matches 6 run function pctf:logic/items/lucky_block/outcomes/positive/solo/scrolls/invulnerability
execute if score #rand temp matches 7 run function pctf:logic/items/lucky_block/outcomes/positive/solo/scrolls/magic_missile
execute if score #rand temp matches 8 run function pctf:logic/items/lucky_block/outcomes/positive/solo/scrolls/poison_ray
execute if score #rand temp matches 9 run function pctf:logic/items/lucky_block/outcomes/positive/solo/scrolls/blink
execute if score #rand temp matches 10 run function pctf:logic/items/lucky_block/outcomes/positive/solo/scrolls/ethereal_blade
execute if score #rand temp matches 11 run function pctf:logic/items/lucky_block/outcomes/positive/solo/scrolls/inferno_ray
execute if score #rand temp matches 12 run function pctf:logic/items/lucky_block/outcomes/positive/solo/scrolls/silence_beam
execute if score #rand temp matches 13 run function pctf:logic/items/lucky_block/outcomes/positive/solo/scrolls/time_warp
execute if score #rand temp matches 14 run function pctf:logic/items/lucky_block/outcomes/positive/solo/scrolls/shadow_burst
execute if score #rand temp matches 15 run function pctf:logic/items/lucky_block/outcomes/positive/solo/scrolls/illusory_bridge
execute if score #rand temp matches 16 run function pctf:logic/items/lucky_block/outcomes/positive/solo/scrolls/soul_beam