align鍵控菜單2.0更新,優(yōu)化演示

#初始化
scoreboard players add @a[rxm=88,scores={菜單=..-71}] "菜單" 1
execute as @a[scores={菜單=-99..-71}] unless entity @s[rxm=88] run scoreboard players add @s "菜單" -1
execute as @a[scores={菜單=..-71}] at @s unless block ~~~ air align y run scoreboard players set @s[rm=0.01] "菜單" -100
execute as @a[rxm=88,scores={菜單=..-71}] at @s unless block ~~~ air align y run title @s[rm=0.01] actionbar 請站在完整方塊上打開此菜單
title @a[scores={菜單=-70..-10}] times 0 5 3
execute as @a[scores={菜單=-70..-10}] at @s align xyz run tp ~0.5~~0.5 ~ 0
execute as @a[scores={菜單=-70..-10}] at @s rotated ~ 0 run camera @s set example:example_free ease 1 linear pos ^0.8^1^2.2 rot 0 ~180
execute as @a[scores={菜單=-70..-10}] at @s run playsound beacon.activate @s ~~1~ 2 4
scoreboard players set @a[scores={菜單=-70..-10}] "菜單" 5
execute as @a[scores={菜單=-97..-71}] run titleraw @s actionbar {"rawtext":[{"translate":"%%9","with":{"rawtext":[{"selector":"@s[scores={菜單=-97..-94}]"},{"selector":"@s[scores={菜單=-97..-91}]"},{"selector":"@s[scores={菜單=-97..-88}]"},{"selector":"@s[scores={菜單=-97..-85}]"},{"selector":"@s[scores={菜單=-97..-82}]"},{"selector":"@s[scores={菜單=-97..-79}]"},{"selector":"@s[scores={菜單=-97..-76}]"},{"selector":"@s[scores={菜單=-97..-73}]"},{"text":"§o§4▎§c▌"},{"text":"§o§4▎§c▌§a正"},{"text":"§o§4▎§c▌§a正在"},{"text":"§o§4▎§c▌§a正在連"},{"text":"§o§4▎§c▌§a正在連接"},{"text":"§o§4▎§c▌§a正在連接中"},{"text":"§o§4▎§c▌§a正在連接中."},{"text":"§o§4▎§c▌§a正在連接中.."},{"text":"§o§4▎§c▌§a正在連接中..."}]}}]}
execute as @a[scores={菜單=-94..-73,菜單=!-96..-95,菜單=!-93..-92,菜單=!-90..-89,菜單=!-87..-86,菜單=!-84..-83,菜單=!-81..-80,菜單=!-78..-77,菜單=!-75..-74}] at @s run playsound random.click @s ~~1~ 2 5.1 2
#功能
execute as @a[scores={計時=..0}] at @s align xyz positioned ~0.5~~0.5 rotated ~ 0 positioned ^^^1 run scoreboard players add @s[r=0.99] "菜單" -3
execute as @a[scores={計時=..0}] at @s align xyz positioned ~0.5~~0.5 rotated ~ 0 positioned ^^^-1 run scoreboard players add @s[r=0.99] "菜單" 3
execute as @a[scores={計時=..0}] at @s align xyz positioned ~0.5~~0.5 rotated ~ 0 positioned ^1^^ run scoreboard players add @s[r=0.99] "菜單" -1
execute as @a[scores={計時=..0}] at @s align xyz positioned ~0.5~~0.5 rotated ~ 0 positioned ^-1^^ run scoreboard players add @s[r=0.99] "菜單" 1
scoreboard players add @a[scores={菜單=10..}] "菜單" -9
scoreboard players add @a[scores={菜單=-9..0}] "菜單" 9
execute as @a[scores={計時=..0}] at @s align xyz positioned ~0.5~~0.5 run playsound random.toast @s[rm=0.01] ~~1~ 0.4 5.1
execute as @a[scores={計時=..0}] at @s align xyz positioned ~0.5~~0.5 run scoreboard players set @s[rm=0.01] "計時" 5
scoreboard players add @a[scores={計時=1..,菜單=1..}] "計時" -1
#第一排
execute as @a[scores={菜單=1}] at @s align xyz positioned ~0.5~3~0.5 if entity @s[r=2.99] run tp 0 -59.5 0
execute as @a[scores={菜單=1}] at @s align xyz positioned ~0.5~3~0.5 if entity @s[r=2.99] run say 回城成功
execute as @a[scores={菜單=2}] at @s align xyz positioned ~0.5~3~0.5 if entity @s[r=2.99] run say 購買雞蛋x1
execute as @a[scores={菜單=3}] at @s align xyz positioned ~0.5~3~0.5 if entity @s[r=2.99] run summon zombie ~~5~
#第二排
execute as @a[scores={菜單=4}] at @s align xyz positioned ~0.5~3~0.5 if entity @s[r=2.99] run say 簽到成功
execute as @a[scores={菜單=5}] at @s align xyz positioned ~0.5~3~0.5 if entity @s[r=2.99] run say 等級不夠
execute as @a[scores={菜單=6}] at @s align xyz positioned ~0.5~3~0.5 if entity @s[r=2.99] run say 桀桀桀
#第三排
execute as @a[scores={菜單=7}] at @s align xyz positioned ~0.5~3~0.5 if entity @s[r=2.99] run say 金幣數(shù):233
execute as @a[scores={菜單=8}] at @s align xyz positioned ~0.5~3~0.5 if entity @s[r=2.99] run say 設(shè)置,啟動!
execute as @a[scores={菜單=9}] at @s align xyz positioned ~0.5~3~0.5 if entity @s[r=2.99] run say 已退出
#結(jié)束
execute as @a[scores={菜單=1..}] at @s align xyz positioned ~0.5~3~0.5 run camera @s[r=2.99] clear
execute as @a[scores={菜單=1..}] at @s align xyz positioned ~0.5~3~0.5 run playsound random.orb @s[r=2.99] ~~-2~ 0.8 1
execute as @a[scores={菜單=1..}] at @s align xyz positioned ~0.5~3~0.5 run scoreboard players set @s[r=2.99] "菜單" -100
execute as @a[scores={菜單=1..}] at @s align xyz positioned ~0.5~~0.5 run tp @s[rm=0.01] ~~~
#菜單顯示
titleraw @a[scores={菜單=1}] title {"rawtext":[{"text":"§f?????§a主城§f?商店?試煉\n\n?????簽到?公會?喊話\n\n?????個人?設(shè)置?退出"}]}
titleraw @a[scores={菜單=2}] title {"rawtext":[{"text":"§f?????主城?§a商店§f?試煉\n\n?????簽到?公會?喊話\n\n?????個人?設(shè)置?退出"}]}
titleraw @a[scores={菜單=3}] title {"rawtext":[{"text":"§f?????主城?商店?§a試煉§f\n\n?????簽到?公會?喊話\n\n?????個人?設(shè)置?退出"}]}
titleraw @a[scores={菜單=4}] title {"rawtext":[{"text":"§f?????主城?商店?試煉\n\n?????§a簽到§f?公會?喊話\n\n?????個人?設(shè)置?退出"}]}
titleraw @a[scores={菜單=5}] title {"rawtext":[{"text":"§f?????主城?商店?試煉\n\n?????簽到?§a公會§f?喊話\n\n?????個人?設(shè)置?退出"}]}
titleraw @a[scores={菜單=6}] title {"rawtext":[{"text":"§f?????主城?商店?試煉\n\n?????簽到?公會?§a喊話§f\n\n?????個人?設(shè)置?退出"}]}
titleraw @a[scores={菜單=7}] title {"rawtext":[{"text":"§f?????主城?商店?試煉\n\n?????簽到?公會?喊話\n\n?????§a個人§f?設(shè)置?退出"}]}
titleraw @a[scores={菜單=8}] title {"rawtext":[{"text":"§f?????主城?商店?試煉\n\n?????簽到?公會?喊話\n\n?????個人?§a設(shè)置§f?退出"}]}
titleraw @a[scores={菜單=9}] title {"rawtext":[{"text":"§f?????主城?商店?試煉\n\n?????簽到?公會?喊話\n\n?????個人?設(shè)置?§a退出§f"}]}
#by 萌鯊無敵
