Browse Source

旁观者范围检测有误

LTCatt 6 năm trước cách đây
mục cha
commit
87d8c67252

+ 1 - 1
data/mini/functions/main/player_failed.mcfunction

@@ -5,7 +5,7 @@ tag @s remove mini_running
 function mini:main/update_player_count
 
 # 显示提示
-execute if entity @s[tag=!rejoining] if score $player_alive mem matches 1.. run tellraw @a ["",{"text": ">> ","color":"red","bold":true},{"selector": "@s","color":"red"}," 已失败! 还有 ",{"score": {"name": "$player_alive","objective": "mem"}}," 人存活!"]
+execute if entity @s[tag=!rejoining] if score $player_alive mem matches 1.. run tellraw @a ["",{"text": ">> ","color":"red","bold":true},{"selector": "@s","color":"red"}," 已淘汰! 还剩 ",{"score": {"name": "$player_alive","objective": "mem"}}," 人!"]
 execute as @a at @s run function lib:sounds/error
 
 # 给存活的玩家加分

+ 0 - 2
data/mini/functions/zombie/tick20.mcfunction

@@ -20,5 +20,3 @@ effect give @e[type=zombie,limit=1,sort=random] slowness 2 1
 # 召唤怪物
 execute if score $random mem matches -5..5 run function mini:zombie/game/summon_zombie
 execute if score $random mem matches ..-12 run function mini:zombie/game/summon_evoker
-
-# FIXME [010/HIM] 连续小游戏过程中侧边栏得分会显示出 $t_score_max

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

@@ -1,3 +1,3 @@
 # 观察者限制飞行范围
-execute as @a[gamemode=spectator] unless entity @s[x=1001,y=11,z=5001,dx=18,dz=11,dy=23] run spectate
-execute as @a[gamemode=spectator] unless entity @s[x=1001,y=11,z=5001,dx=18,dz=11,dy=23] run tp @s 1010.5 20 5006.0 0 25
+execute as @a[gamemode=spectator] unless entity @s[x=1001,y=11,z=5001,dx=18,dy=11,dz=23] run spectate
+execute as @a[gamemode=spectator] unless entity @s[x=1001,y=11,z=5001,dx=18,dy=11,dz=23] run tp @s 1010.5 20 5006.0 0 25