summon area_effect_cloud ^ ^ ^0.22 {Tags:[SelectM],Particle:"block air"}
execute store result score Z Temp run data get entity @e[tag=SelectM,limit=1] Pos[2] 8
scoreboard players add Depth2 Temp 1
execute if score Z Temp < 410 Integer store result score @s MenuXLook run data get entity @e[tag=SelectM,limit=1] Pos[0] 1000
execute if score Z Temp < 410 Integer store result score @s MenuYLook run data get entity @e[tag=SelectM,limit=1] Pos[1] 1000
execute if score Depth2 Temp > 20 Integer run scoreboard players set @s MenuXLook -1
execute if score Depth2 Temp > 20 Integer run scoreboard players set @s MenuYLook -1
execute if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 54000 Integer if score @s MenuXLook < 54500 Integer run particle dust 1 0 0 0.3 54.0 12.5 51.125 0 0.1 0 0 1 normal @s
execute if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 54000 Integer if score @s MenuXLook < 54500 Integer run particle dust 1 0 0 0.3 54.25 12.75 51.125 0.1 0 0 0 1 normal @s
execute if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 54000 Integer if score @s MenuXLook < 54500 Integer run particle dust 1 0 0 0.3 54.25 12.25 51.125 0.1 0 0 0 1 normal @s
execute if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 54500 Integer if score @s MenuXLook < 55000 Integer run particle dust 0 0 1 0.3 54.75 12.75 51.125 0.1 0 0 0 1 normal @s
execute if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 54500 Integer if score @s MenuXLook < 55000 Integer run particle dust 0 0 1 0.3 55.0 12.5 51.125 0 0.1 0 0 1 normal @s
execute if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 54500 Integer if score @s MenuXLook < 55000 Integer run particle dust 0 0 1 0.3 54.75 12.25 51.125 0.1 0 0 0 1 normal @s
execute if score P1AI Game = 1 Integer if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 55000 Integer if score @s MenuXLook < 55500 Integer run particle dust 1 0 0 0.3 55.0 12.5 51.125 0 0.1 0 0 1 normal @s
execute if score P1AI Game = 1 Integer if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 55000 Integer if score @s MenuXLook < 55500 Integer run particle dust 1 0 0 0.3 55.25 12.75 51.125 0.1 0 0 0 1 normal @s
execute if score P1AI Game = 1 Integer if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 55000 Integer if score @s MenuXLook < 55500 Integer run particle dust 1 0 0 0.3 55.25 12.25 51.125 0.1 0 0 0 1 normal @s
execute if score P1AI Game = 1 Integer if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 55500 Integer if score @s MenuXLook < 56000 Integer run particle dust 0 0 1 0.3 55.75 12.75 51.125 0.1 0 0 0 1 normal @s
execute if score P1AI Game = 1 Integer if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 55500 Integer if score @s MenuXLook < 56000 Integer run particle dust 0 0 1 0.3 56.0 12.5 51.125 0 0.1 0 0 1 normal @s
execute if score P1AI Game = 1 Integer if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 55500 Integer if score @s MenuXLook < 56000 Integer run particle dust 0 0 1 0.3 55.75 12.25 51.125 0.1 0 0 0 1 normal @s
execute if score P2AI Game = 1 Integer if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 56000 Integer if score @s MenuXLook < 56500 Integer run particle dust 1 0 0 0.3 56.0 12.5 51.125 0 0.1 0 0 1 normal @s
execute if score P2AI Game = 1 Integer if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 56000 Integer if score @s MenuXLook < 56500 Integer run particle dust 1 0 0 0.3 56.25 12.75 51.125 0.1 0 0 0 1 normal @s
execute if score P2AI Game = 1 Integer if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 56000 Integer if score @s MenuXLook < 56500 Integer run particle dust 1 0 0 0.3 56.25 12.25 51.125 0.1 0 0 0 1 normal @s
execute if score P2AI Game = 1 Integer if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 56500 Integer if score @s MenuXLook < 57000 Integer run particle dust 0 0 1 0.3 56.75 12.75 51.125 0.1 0 0 0 1 normal @s
execute if score P2AI Game = 1 Integer if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 56500 Integer if score @s MenuXLook < 57000 Integer run particle dust 0 0 1 0.3 57.0 12.5 51.125 0 0.1 0 0 1 normal @s
execute if score P2AI Game = 1 Integer if score @s MenuYLook >= 12200 Integer if score @s MenuYLook < 12800 Integer if score @s MenuXLook >= 56500 Integer if score @s MenuXLook < 57000 Integer run particle dust 0 0 1 0.3 56.75 12.25 51.125 0.1 0 0 0 1 normal @s
kill @e[tag=SelectM]
execute unless score Z Temp < 410 Integer unless score Depth2 Temp > 20 Integer positioned ^ ^ ^0.22 run function main:selectmenu