基岩版首创键控菜单,泛用菜单全新可能
#初始化
scoreboard players add @a[rxm=88,scores={菜单=..-61}] "菜单" 1
execute as @a[scores={菜单=..-60}] unless entity @s[rxm=88] run scoreboard players set @s "菜单" -100
title @a[scores={菜单=-60..0}] times 0 5 3
scoreboard players set @a[scores={菜单=-60..0}] "菜单" 5
title @a[scores={菜单=-99..-85}] actionbar 菜单启动中.
title @a[scores={菜单=-84..-75}] actionbar 菜单启动中..
title @a[scores={菜单=-74..-60}] actionbar 菜单启动中...
#功能
execute as @a at @s align xyz positioned ~0.5~~1.5 run scoreboard players add @s[r=0.99,scores={菜单=4..,计时=..0}] "菜单" -3
execute as @a at @s align xyz positioned ~0.5~~-0.5 run scoreboard players add @s[r=0.99,scores={菜单=1..6,计时=..0}] "菜单" 3
execute as @a at @s align xyz positioned ~1.5~~0.5 run scoreboard players add @s[r=0.99,scores={菜单=2..,计时=..0}] "菜单" -1
execute as @a at @s align xyz positioned ~-0.5~~0.5 run scoreboard players add @s[r=0.99,scores={菜单=1..8,计时=..0}] "菜单" 1
execute as @a at @s align xyz positioned ~0.5~~0.5 run playsound random.orb @s[rm=0.01,scores={计时=..0}] ~~~ 2 1
execute as @a at @s align xyz positioned ~0.5~~0.5 run scoreboard players set @s[rm=0.01,scores={计时=..0}] "计时" 6
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.9 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 金币数:233
execute as @a[scores={菜单=8}] at @s align xyz positioned ~0.5~3~0.5 if entity @s[r=2.99] run say 设置,启动!
execute as @a[scores={菜单=9}] at @s align xyz positioned ~0.5~3~0.5 if entity @s[r=2.99] run say 已退出
#结束
execute as @a[scores={菜单=1..}] at @s align xyz positioned ~0.5~3~0.5 if entity @s[r=2.99] run camera @s clear
execute as @a[scores={菜单=1..}] at @s align xyz positioned ~0.5~3~0.5 if entity @s[r=2.99] run scoreboard players set @s "菜单" -100
execute as @a[scores={菜单=1..}] at @s align xyz run tp ~0.5~~0.5 0 0
execute as @a[scores={菜单=1..}] at @s run camera @s set example:example_free ease 1 linear pos ~0.8~1~2.2 rot 0 180
#菜单显示
titleraw @a[scores={菜单=1}] title {"rawtext":[{"text":"§f §a主城§f 商店 试炼\n\n 签到 公会 喊话\n\n 个人 设置 退出"}]}
titleraw @a[scores={菜单=2}] title {"rawtext":[{"text":"§f 主城 §a商店§f 试炼\n\n 签到 公会 喊话\n\n 个人 设置 退出"}]}
titleraw @a[scores={菜单=3}] title {"rawtext":[{"text":"§f 主城 商店 §a试炼§f\n\n 签到 公会 喊话\n\n 个人 设置 退出"}]}
titleraw @a[scores={菜单=4}] title {"rawtext":[{"text":"§f 主城 商店 试炼\n\n §a签到§f 公会 喊话\n\n 个人 设置 退出"}]}
titleraw @a[scores={菜单=5}] title {"rawtext":[{"text":"§f 主城 商店 试炼\n\n 签到 §a公会§f 喊话\n\n 个人 设置 退出"}]}
titleraw @a[scores={菜单=6}] title {"rawtext":[{"text":"§f 主城 商店 试炼\n\n 签到 公会 §a喊话§f\n\n 个人 设置 退出"}]}
titleraw @a[scores={菜单=7}] title {"rawtext":[{"text":"§f 主城 商店 试炼\n\n 签到 公会 喊话\n\n §a个人§f 设置 退出"}]}
titleraw @a[scores={菜单=8}] title {"rawtext":[{"text":"§f 主城 商店 试炼\n\n 签到 公会 喊话\n\n 个人 §a设置§f 退出"}]}
titleraw @a[scores={菜单=9}] title {"rawtext":[{"text":"§f 主城 商店 试炼\n\n 签到 公会 喊话\n\n 个人 设置 §a退出§f"}]}
#by 萌鲨无敌