watcher_limit.mcfunction 476 B

1234
  1. # 观察者限制飞行范围
  2. execute unless score $state mem matches 5 run tp @a[gamemode=spectator,team=!debugging] 1010.96 26.83 1032.37 -385.24 16.67
  3. execute if score $state mem matches 5 as @a[gamemode=spectator,team=!debugging] at @s unless entity @a[team=playing,gamemode=!spectator,distance=..2] run spectate @p[team=playing,gamemode=!spectator]
  4. execute if score $state mem matches 5 run title @a[gamemode=spectator] actionbar {"text":"按数字键旁观其他玩家"}