execute store result score #random3 temp run random value 1..5

execute as @a if score @s real_ID = @n[tag=lucky_block] real_ID run function pctf:logic/items/lucky_block/outcomes/rare/fx

# for testing outcomes (turn it into a comment when not testing)
# scoreboard players set #random3 temp 5

execute if score #random3 temp matches 1 as @a if score @s real_ID = @n[tag=lucky_block] real_ID run function pctf:logic/items/lucky_block/outcomes/rare/shopping_spree/start
execute if score #random3 temp matches 2 as @a if score @s real_ID = @n[tag=lucky_block] real_ID run function pctf:logic/items/lucky_block/outcomes/rare/minigun
execute if score #random3 temp matches 3 as @a if score @s real_ID = @n[tag=lucky_block] real_ID run function pctf:logic/items/lucky_block/outcomes/rare/giant
execute if score #random3 temp matches 4 as @a if score @s real_ID = @n[tag=lucky_block] real_ID run function pctf:logic/items/lucky_block/outcomes/rare/llama_strike/start
execute if score #random3 temp matches 5 as @a if score @s real_ID = @n[tag=lucky_block] real_ID run function pctf:logic/items/lucky_block/outcomes/rare/swap_teams
#execute if score #random3 temp matches 6 as @a if score @s real_ID = @n[tag=lucky_block] real_ID run function pctf:logic/items/lucky_block/outcomes/rare/filthy_rich