|
|
@@ -5,7 +5,10 @@ function lib:random
|
|
|
execute if score $random mem matches 2 if score $parkour_door mem matches 1 run playsound block.portal.ambient ambient @a 1014.5 22 1057.5
|
|
|
|
|
|
# 强制开门:只差一个人没到触发
|
|
|
-execute store result score #not_arrive mem unless entity @a[x=1015.0,y=20.0,z=1055.0,dx=2,dy=4,dz=4,gamemode=!spectator]
|
|
|
+function mini:main/update_player_count
|
|
|
+execute store result score #arrived mem if entity @a[x=1015.0,y=20.0,z=1055.0,dx=2,dy=4,dz=4,tag=mini_running,tag=!watcher,scores={mini_score=-10..}]
|
|
|
+scoreboard players operation #not_arrive mem = $player_alive mem
|
|
|
+scoreboard players operation #not_arrive mem -= #arrived mem
|
|
|
execute if score #not_arrive mem matches ..1 run scoreboard players set $countdown mem 0
|
|
|
|
|
|
# 强制开门:倒计时 90s 触发
|