Explorar o código

修复观察者范围

HerobrineXia %!s(int64=6) %!d(string=hai) anos
pai
achega
7604df307b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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