LTCatt %!s(int64=6) %!d(string=hai) anos
pai
achega
684f14be3b

+ 4 - 2
data/ltw/functions/state/0/tick20.mcfunction

@@ -4,7 +4,9 @@ execute if score $countdown mem matches 1.. if score $game_type mem matches 1 ru
 
 # 显示倒计时,播放音效
 execute if score $countdown mem matches 1.. run title @a times 3 14 2
-execute if score $countdown mem matches 1.. run title @a subtitle {"score":{"name":"$countdown","objective":"mem"}}
+scoreboard players operation $t_time mem = $countdown mem
+scoreboard players remove $t_time mem 1
+execute if score $countdown mem matches 1.. run title @a subtitle {"score":{"name":"$t_time","objective":"mem"}}
 execute if score $countdown mem matches 1.. if score $game_type mem matches 0 run title @a title ["经典模式"]
 execute if score $countdown mem matches 1.. if score $game_type mem matches 1 run title @a title ["小游戏模式"]
-execute if score $countdown mem matches 1..9 run execute as @a at @s run function lib:sounds/hit2
+execute if score $countdown mem matches 1..10 run execute as @a at @s run function lib:sounds/hit2

+ 4 - 4
data/ltw/functions/state/0/try_start_game.mcfunction

@@ -1,11 +1,11 @@
 # 尝试开始任意游戏
 
 # 进行条件判断
-execute if score $countdown mem matches 0 run scoreboard players set $countdown mem 11
+execute if score $countdown mem matches 0 run scoreboard players set $countdown mem 999
 execute if score $game_type mem matches 0 run function ltw:state/0/try_start_classic
 execute if score $game_type mem matches 1 run function ltw:state/0/try_start_gameparty
 
 # 进行提示
-execute if score $countdown mem matches 11 run tellraw @a [{"text":"","color":"green"},{"text": ">> ","bold": true},"游戏即将开始, 请到准备区域准备, 若想旁观则请离开准备区域!"]
-execute if score $countdown mem matches 11 as @a at @s run function lib:sounds/levelup
-execute if score $countdown mem matches 11 run scoreboard players set $countdown mem 10
+execute if score $countdown mem matches 999 run tellraw @a [{"text":"","color":"green"},{"text": ">> ","bold": true},"游戏即将开始, 请到准备区域准备, 若想旁观则请离开准备区域!"]
+execute if score $countdown mem matches 999 as @a at @s run function lib:sounds/levelup
+execute if score $countdown mem matches 999 run scoreboard players set $countdown mem 11

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

@@ -13,4 +13,4 @@ execute if score $count mem matches 9.. if score $countdown mem matches 10 run t
 execute if score $count mem matches 9.. if score $countdown mem matches 1 run tellraw @a [{"text":"","color":"gold"},{"text":">> ","bold": true},"小游戏模式最多支持 8 人, 当前已有 ",{"score": { "name": "$count","objective": "mem"}}, " 人, 将随机抽取 8 人开始游戏!"]
 
 # 开始游戏
-execute if score $countdown mem matches 1 run schedule function ltw:state/0/start_gameparty 18t
+execute if score $countdown mem matches 1 run function ltw:state/0/start_gameparty