|
|
@@ -10,15 +10,18 @@ effect give @s night_vision 1000000 0 true
|
|
|
effect give @s resistance 1000000 4 true
|
|
|
|
|
|
# 传送玩家
|
|
|
-spreadplayers 1011.5 2011.5 7 7 false @s[tag=!watcher]
|
|
|
-schedule function mini:tntrun/player_enter2 1t replace
|
|
|
+spreadplayers 1011.5 2011.5 7 7 false @s[tag=!watcher,tag=!rejoining]
|
|
|
+execute if entity @s[tag=!watcher,tag=!rejoining] run schedule function mini:tntrun/player_enter2 1t replace
|
|
|
# schedule: tp @a ~ ~-3 ~
|
|
|
|
|
|
# 两秒后才开始 TNT 掉落
|
|
|
tag @s remove tntrun_pc
|
|
|
-schedule function mini:tntrun/player_enter3 2s replace
|
|
|
+execute if entity @s[tag=!watcher,tag=!rejoining] run schedule function mini:tntrun/player_enter3 2s replace
|
|
|
# schedule: tag @a add tntrun_pc
|
|
|
|
|
|
# 调整模式
|
|
|
-gamemode adventure @s[tag=!watcher]
|
|
|
-gamemode spectator @s[tag=watcher]
|
|
|
+gamemode spectator @s
|
|
|
+gamemode adventure @s[tag=!watcher,tag=!rejoining]
|
|
|
+
|
|
|
+# 重新加入处理
|
|
|
+execute if entity @s[tag=rejoining] run function mini:tntrun/player_failed
|