LTCatt 6 jaren geleden
bovenliggende
commit
447851c99c

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

@@ -3,7 +3,7 @@ title @s clear
 title @s actionbar ""
 
 # 显示 Title
-title @s times 5 50 5
+title @s times 5 53 2
 title @s subtitle ""
 execute if score $round mem matches ..5 run title @s title ["第 ",{"score": {"objective": "mem","name": "$round"}},"/6 轮"]
 execute if score $round mem matches 6 run title @s title {"text":"最终轮","color":"gold"}

+ 8 - 4
data/ltw/functions/state/4/state_enter.mcfunction

@@ -2,11 +2,15 @@
 scoreboard players set $state mem 4
 execute as @a run function ltw:state/4/player_enter
 
+# 初始化倒计时
+scoreboard players set $countdown mem 10
+
 # HUD
 scoreboard objectives setdisplay belowName total_score_disp
 scoreboard objectives setdisplay sidebar total_score
 scoreboard objectives setdisplay list total_score_disp
-scoreboard players set $bossbar_type mem 0
-
-# 初始化倒计时
-scoreboard players set $countdown mem 10
+scoreboard players set $bossbar_color mem 4
+scoreboard players set $countdown_max mem 10
+scoreboard players set $bossbar_type mem 2
+bossbar set mini:blue name "剩余时间"
+function lib:bossbar/show

+ 3 - 3
data/ltw/functions/state/4/tick20.mcfunction

@@ -1,7 +1,7 @@
 # 显示倒计时
-title @a times 3 14 2
-title @a subtitle {"score":{"name":"$countdown","objective":"mem"}}
-title @a title [""]
+# title @a times 3 14 2
+# title @a subtitle {"score":{"name":"$countdown","objective":"mem"}}
+# title @a title [""]
 
 # 退出状态
 execute if score $countdown mem matches 0 run function ltw:state/5/state_enter

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

@@ -4,7 +4,7 @@ title @s clear
 title @s actionbar ""
 
 # 显示 Title
-title @s times 5 50 5
+title @s times 5 53 2
 title @s subtitle ""
 title @s title "选择奖励"