scoreboard players set .rest arena 2
execute if score .reward_wait arena matches 1.. run tp @s -61 5 12 -90 0
execute if score .reward_wait arena matches 1.. run scoreboard players remove .reward_wait arena 1

execute as @a[tag=!artifact_chosen] if block -56 6 8 oak_button[powered=true] run function main:game/stage_end/reward/id1/1
execute as @a[tag=!artifact_chosen] if block -56 6 12 oak_button[powered=true] run function main:game/stage_end/reward/id1/2
execute as @a[tag=!artifact_chosen] if block -56 6 16 oak_button[powered=true] run function main:game/stage_end/reward/id1/3

execute unless entity @e[type=item] run summon text_display -54 9 12 {alignment:center,billboard:"center",Rotation:[90F,0F],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2f,2f,2f]},text:'{"bold":true,"color":"red","text":"TURN BACK TO LEAVE"}'}

execute as @a[x=-71,y=5,z=12,dx=0] run function main:game/stage_end/reward/id1/leave