LTCatt 6 лет назад
Родитель
Сommit
5823ad36f7

+ 1 - 1
data/ltw/functions/state/0/player_enter.mcfunction

@@ -4,7 +4,7 @@ title @s clear
 title @s actionbar ""
 
 # 清理物品
-clear @s
+clear @s[tag=!debug]
 
 # 重置玩家血量上限
 attribute @s generic.max_health base set 20

+ 3 - 2
data/ltw/functions/state/0/start_gameparty.mcfunction

@@ -2,7 +2,8 @@
 
 # 设置旁观
 tag @a add watcher
-tag @a[tag=hub_ready,sort=random,limit=8] remove watcher
+tag @a[tag=hub_ready,sort=random,limit=8,tag=!debug] remove watcher
+tellraw @a[tag=debug] "你正处于 Debug 模式中, 将忽略游戏开始!"
 
 # 设置数据
 scoreboard players reset * total_score
@@ -13,7 +14,7 @@ scoreboard players set $round mem 1
 scoreboard players set $game_type mem 1
 scoreboard players add $ game_id 1
 scoreboard players operation @a game_id = $ game_id
-clear @a[tag=!watcher]
+clear @a[tag=!watcher,tag=!debug]
 
 # 开始小游戏
 function lib:sounds/music/stop

+ 4 - 2
data/mini/functions/main/update_player_count.mcfunction

@@ -1,4 +1,6 @@
 # 更新存活与结束的玩家数量
 
-execute store success score $player_alive mem if entity @a[tag=mini_running,tag=!watcher,scores={mini_score=-10..}]
-execute store success score $player_finish mem if entity @a[tag=!mini_running,tag=!watcher,scores={mini_score=-10..}]
+scoreboard players set $player_alive mem 0
+execute as @a[tag=mini_running,tag=!watcher] unless entity @s[scores={..-10}] run scoreboard players add $player_alive mem 1
+scoreboard players set $player_alive mem 0
+execute as @a[tag=!mini_running,tag=!watcher] unless entity @s[scores={..-10}] run scoreboard players add $player_finish mem 1