瀏覽代碼

修复观察者范围

HerobrineXia 6 年之前
父節點
當前提交
7604df307b
共有 1 個文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      data/mini/functions/colormatch/watcher_limit.mcfunction

+ 2 - 2
data/mini/functions/colormatch/watcher_limit.mcfunction

@@ -1,3 +1,3 @@
 # 观察者限定范围
-execute as @a[gamemode=spectator,x=1049,y=10,z=4025,dx=27,dz=27,dy=30] run spectate
-tp @a[gamemode=spectator,x=1049,y=10,z=4025,dx=27,dz=27,dy=30] 1062 22 4012 20 180
+execute as @a[gamemode=spectator] unless entity @s[x=1049,y=10,z=3999,dx=27,dz=27,dy=30] run spectate
+execute as @a[gamemode=spectator] unless entity @s[x=1049,y=10,z=3999,dx=27,dz=27,dy=30] run tp @s 1062 22 4012 20 180