|
|
@@ -34,7 +34,7 @@ scoreboard players operation #start_sec mem = #start_countdown mem
|
|
|
scoreboard players operation #start_sec mem /= #const_4 mem
|
|
|
scoreboard players operation #start_div mem = #start_countdown mem
|
|
|
scoreboard players operation #start_div mem %= #const_4 mem
|
|
|
-execute if score #start_sec mem matches 1..10 if score #start_div mem matches 0 run execute as @a at @s run function lib:sounds/hit2
|
|
|
+execute if score #start_sec mem matches 1..10 if score #start_div mem matches 1 run execute as @a at @s run function lib:sounds/hit2
|
|
|
|
|
|
# 20s:提示未准备
|
|
|
execute if score #start_countdown mem matches 80 run tellraw @a[team=watching] [{"text":"","color":"red"},{"text":">> ","bold": true},"你还没有准备, 如果要参加游戏, 请丢出快捷栏最后一格的物品!"]
|
|
|
@@ -46,5 +46,5 @@ execute if score #start_countdown mem matches 40 if score $count mem matches 9..
|
|
|
execute if score #start_countdown mem matches 0 run function ltw:state/0/start_game
|
|
|
|
|
|
# 显示信息
|
|
|
-execute if score #start_countdown mem matches 1..99 run title @a actionbar [{"text":"","color":"green"},{"score":{"name":"$count","objective":"mem"}},"/",{"score":{"name":"#total_count","objective":"mem"}}," 人已准备 | ","将在 ",{"score":{"name":"#start_sec","objective":"mem"}}," 秒后开始游戏"]
|
|
|
-execute if score #start_countdown mem matches 100.. run title @a actionbar [{"text":"","color":"red"},{"score":{"name":"$count","objective":"mem"}},"/",{"score":{"name":"#total_count","objective":"mem"}}," 人已准备 | 需要 3 人以开始游戏"]
|
|
|
+execute if score #start_countdown mem matches 1..199 run title @a actionbar [{"text":"","color":"green"},{"score":{"name":"$count","objective":"mem"}},"/",{"score":{"name":"#total_count","objective":"mem"}}," 人已准备 | ","将在 ",{"score":{"name":"#start_sec","objective":"mem"}}," 秒后开始游戏"]
|
|
|
+execute if score #start_countdown mem matches 200.. run title @a actionbar [{"text":"","color":"red"},{"score":{"name":"$count","objective":"mem"}},"/",{"score":{"name":"#total_count","objective":"mem"}}," 人已准备 | 需要 3 人以开始游戏"]
|