playsound minecraft:ui.button.click ambient @s
scoreboard players add .randomevents settings 1
execute as @e[type=minecraft:item_display,tag=randomevents,limit=1] at @s run tp @s ~ ~ ~ ~90 0

execute if score .randomevents settings matches 2.. run scoreboard players set .randomevents settings 0


execute if score .randomevents settings matches 1 run data merge entity @e[type=minecraft:text_display,tag=randomevents,sort=nearest,limit=1] {text:'"Yes"'}

execute if score .randomevents settings matches 0 run data merge entity @e[type=minecraft:text_display,tag=randomevents,sort=nearest,limit=1] {text:'"No"'}

