加载中...
简易雪球菜单

简易雪球菜单

videoCover-简易雪球菜单.studio_video_1752694640359.mp4.31560368773.jpeg
https://www.bilibili.com/video/BV14qgFzWEYh

前置:

/scoreboard objectives add 雪球 dummy

指令部分:

1.循环无条件:execute as @a[scores={雪球=1..5}] at @s run titleraw @s actionbar {"rawtext":[{"text":"§7-/////////§b§lMenu§r§7/////////-§7"},{"translate":"%%2传送主城","with":{"rawtext":[{"selector":"@s[scores={雪球=2}]"},{"text":"\n §e>§f"},{"text":"§7\n "}]}},{"translate":"%%2原地去世","with":{"rawtext":[{"selector":"@s[scores={雪球=3}]"},{"text":"\n §e>§f"},{"text":"§7\n "}]}},{"translate":"%%2设重生点","with":{"rawtext":[{"selector":"@s[scores={雪球=4}]"},{"text":"\n §e>§f"},{"text":"§7\n "}]}},{"translate":"%%2转变生存","with":{"rawtext":[{"selector":"@s[scores={雪球=5}]"},{"text":"\n §e>§f"},{"text":"§7\n "}]}},{"text":"\n§7-/§a抬头确定§7////§c低头取消§7/-\n\n\n\n"}]}

2.连锁无条件:execute as @e[type=snowball] at @s run scoreboard players add @a[c=1,r=2] 雪球 1

3.连锁无条件:execute as @e[type=snowball] at @s run playsound block.scaffolding.place @a[c=1,r=2.2] ~ ~ ~ 1 3

4.连锁无条件:execute as @a[rx=-88,scores={雪球=2..5}] at @s run playsound block.loom.use @a[c=1,r=2.2] ~ ~ ~ 1 4

5.连锁无条件:execute as @a[rxm=88,scores={雪球=1..5}] at @s run playsound jump.nether_gold_ore @a[c=1,r=2.2] ~ ~ ~ 1 4

6.连锁无条件:kill @e[type=snowball]

7.连锁无条件:execute as @a[rx=-88,scores={雪球=2}] run tp @s (主城位置坐标)

8.连锁无条件:execute as @a[rx=-88,scores={雪球=3}] at @s run kill @s

9.连锁无条件:execute as @a[rx=-88,scores={雪球=4}] at @s run spawnpoint @s ~ ~ ~

10.连锁无条件:execute as @a[rx=-88,scores={雪球=5}] at @s run gamemode survival @s

11.连锁无条件:execute as @a[rx=-88,scores={雪球=2..5}] at @s run title @s actionbar §a|§f执行成功

12.连锁无条件:execute as @a[rx=-88,scores={雪球=2..5}] at @s run scoreboard players set @s 雪球 0

13.连锁无条件:execute as @a[rxm=88,scores={雪球=1..5}] at @s run title @s actionbar §c|§f取消菜单

14.连锁无条件:execute as @a[rxm=88,scores={雪球=1..5}] at @s run scoreboard players set @s 雪球 0

15.连锁无条件:execute as @a[scores={雪球=6..}] at @s run scoreboard players set @s 雪球 2

16.连锁无条件:give @a[hasitem={quantity=0,data=1,item=snowball}] snowball 9 1 {"minecraft:item_lock":{"mode":"lock_in_inventory"}}

注:每个人服务器卡顿不同,可能效果也不同,注意填回城坐标.

CC BY-NC-SA 4.0 Deed | 署名-非商业性使用-相同方式共享
最后更新时间:2025-10-20 14:44:43