Selaa lähdekoodia

Merge branch 'master' of https://github.com/LTCatt/LTW3

LTCatt 6 vuotta sitten
vanhempi
sitoutus
5a2fb7d925
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      data/mini/functions/tntrun/tick4.mcfunction

+ 4 - 1
data/mini/functions/tntrun/tick4.mcfunction

@@ -1,2 +1,5 @@
 # 玩家死亡判断
-execute as @a[tag=tntrun_pc] at @s if block ~ ~ ~ lava run function mini:tntrun/player_failed
+execute as @a[tag=tntrun_pc] at @s if block ~ ~ ~ lava run function mini:tntrun/player_failed
+
+# 观察者限制飞行范围
+execute as @a[gamemode=spectator] unless entity @s[x=1000,y=10,z=2000,dx=22,dz=22,dy=22] run spectate @r[tag=tntrun_pc]