LTCatt 6 лет назад
Родитель
Сommit
7defe703db

+ 2 - 1
data/ltw/functions/main/game_end.mcfunction

@@ -65,4 +65,5 @@ schedule function ltw:state/0/state_enter 2t replace
 execute as @a at @s run function lib:sounds/theend
 forceload remove all
 
-# FIXME : 新加入游戏的玩家会显示幻翼击杀数和得分
+# FIXME : [LTCat] 旁观者会显示幻翼击杀数
+# TODO : 为跑酷添加阶段性随机

+ 3 - 3
data/ltw/functions/state/0/state_enter.mcfunction

@@ -3,9 +3,9 @@ scoreboard players set $state mem 0
 execute as @a run function ltw:state/0/player_enter
 
 # HUD
-scoreboard objectives setdisplay belowName gold
-scoreboard objectives setdisplay sidebar
-scoreboard objectives setdisplay list gold
+scoreboard objectives setdisplay belowName gold_total
+scoreboard objectives setdisplay sidebar gold_total
+scoreboard objectives setdisplay list gold_total
 
 # 伤害管理
 scoreboard players set $remove_resistance mem 0

+ 8 - 8
data/mini/functions/phantom/tick5.mcfunction

@@ -1,10 +1,10 @@
 
 # 击杀音效与提示
-execute as @a run scoreboard players operation @s temp = @s kill_phantom
-execute as @a run scoreboard players operation @s temp -= @s kill_phantom2
-execute as @a run scoreboard players operation @s kill_phantom2 = @s kill_phantom
-execute as @a run scoreboard players operation @s kill_phantom2 %= #const_5 mem
-execute as @a[scores={temp=1..,kill_phantom2=1..}] run function lib:sounds/hit
-execute as @a[scores={temp=1..,kill_phantom2=0}] run function lib:sounds/levelup
-execute as @a[scores={temp=1..,kill_phantom2=0}] run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"selector": "@s","color":"gold"}," 已击杀 ",{"score": { "name": "@s","objective": "kill_phantom"},"color":"gold"}," 只幻翼!"]
-execute as @a run scoreboard players operation @s kill_phantom2 = @s kill_phantom
+execute as @a[tag=!watcher] run scoreboard players operation @s temp = @s kill_phantom
+execute as @a[tag=!watcher] run scoreboard players operation @s temp -= @s kill_phantom2
+execute as @a[tag=!watcher] run scoreboard players operation @s kill_phantom2 = @s kill_phantom
+execute as @a[tag=!watcher] run scoreboard players operation @s kill_phantom2 %= #const_5 mem
+execute as @a[tag=!watcher,scores={temp=1..,kill_phantom2=1..}] run function lib:sounds/hit
+execute as @a[tag=!watcher,scores={temp=1..,kill_phantom2=0}] run function lib:sounds/levelup
+execute as @a[tag=!watcher,scores={temp=1..,kill_phantom2=0}] run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"selector": "@s","color":"gold"}," 已击杀 ",{"score": { "name": "@s","objective": "kill_phantom"},"color":"gold"}," 只幻翼!"]
+execute as @a[tag=!watcher] run scoreboard players operation @s kill_phantom2 = @s kill_phantom