#初始化
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 ~~~ run scoreboard players add @s[r=,scores={菜单=4..,计时=..0}] "菜单" -3
execute as @a at @s align xyz positioned ~~~- run scoreboard players add @s[r=,scores={菜单=1..6,计时=..0}] "菜单" 3
execute as @a at @s align xyz positioned ~~~ run scoreboard players add @s[r=,scores={菜单=2..,计时=..0}] "菜单" -1
execute as @a at @s align xyz positioned ~-~~ run scoreboard players add @s[r=,scores={菜单=1..8,计时=..0}] "菜单" 1
execute as @a at @s align xyz positioned ~~~ run playsound @s[rm=,scores={计时=..0}] ~~~ 2 1
execute as @a at @s align xyz positioned ~~~ run scoreboard players set @s[rm=,scores={计时=..0}] "计时" 6
scoreboard players add @a[scores={计时=1..,菜单=1..}] "计时" -1
#第一排
execute as @a[scores={菜单=1}] at @s align xyz positioned ~~3~ if entity @s[r=] run tp 0 - 0
execute as @a[scores={菜单=1}] at @s align xyz positioned ~~3~ if entity @s[r=] run say 回城成功
execute as @a[scores={菜单=2}] at @s align xyz positioned ~~3~ if entity @s[r=] run say 购买鸡蛋x1
execute as @a[scores={菜单=3}] at @s align xyz positioned ~~3~ if entity @s[r=] run summon zombie ~~5~
#第二排
execute as @a[scores={菜单=4}] at @s align xyz positioned ~~3~ if entity @s[r=] run say 签到成功
execute as @a[scores={菜单=5}] at @s align xyz positioned ~~3~ if entity @s[r=] run say 等级不够
execute as @a[scores={菜单=6}] at @s align xyz positioned ~~3~ if entity @s[r=] run say 桀桀桀
#第三排
execute as @a[scores={菜单=7}] at @s align xyz positioned ~~3~ if entity @s[r=] run say 金币数:233
execute as @a[scores={菜单=8}] at @s align xyz positioned ~~3~ if entity @s[r=] run say 设置,启动!
execute as @a[scores={菜单=9}] at @s align xyz positioned ~~3~ if entity @s[r=] run say 已退出
#结束
execute as @a[scores={菜单=1..}] at @s align xyz positioned ~~3~ if entity @s[r=] run camera @s clear
execute as @a[scores={菜单=1..}] at @s align xyz positioned ~~3~ if entity @s[r=] run scoreboard players set @s "菜单" -100
execute as @a[scores={菜单=1..}] at @s align xyz run tp ~~~ 0 0
execute as @a[scores={菜单=1..}] at @s run camera @s set example:example_free ease 1 linear pos ~~1~ 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 萌鲨无敌
Copyright 2015-2022 华东知识产权网 版权所有 备案号:京ICP备2022016840号-41 联系邮箱:2 913 236 @qq.com