LTCatt 5 ani în urmă
părinte
comite
e3df120498

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

@@ -43,7 +43,5 @@ function lib:bossbar/show
 # TODO: [LTCat] 钻石 重新考虑是否显示玩家的钻石数——现在这样似乎降低了玩家在最终阶段的攻击欲望
 # FIXME: [HIM] 在游戏中也可以通过打开物品栏丢出奇怪的游戏内物品,得想个办法进行限制
 # TODO: [LTCat] 增加文本可读性
-# FIXME: [LTCat] 玩家层数记分板可能会闪烁
-# TODO: [LTCat] 优化转场黑屏动画*
+# FIXME: [LTCat] 玩家层数记分板可能会闪烁*
 # TODO: 钻石 为钻石掉落物添加发光效果
-# TODO: [LTCat] 跑酷 为密室增加一个奖励物品*

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

@@ -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 人以开始游戏"]

+ 2 - 0
data/mini/functions/tntrun/game_init.mcfunction

@@ -1,6 +1,8 @@
 # 初始化 TNT Run 地图
 forceload add 1000 2000 1050 2050
 
+scoreboard players reset * layer
+
 scoreboard players set $finish_mode mem 0
 scoreboard players set $survival mem 0
 

+ 0 - 1
data/mini/functions/tntrun/tick5.mcfunction

@@ -5,7 +5,6 @@ execute as @a[tag=mini_running] at @s if entity @s[y=35,dy=10] run scoreboard pl
 execute as @a[tag=mini_running] at @s if entity @s[y=30,dy=3] run scoreboard players set @s temp 3
 execute as @a[tag=mini_running] at @s if entity @s[y=25,dy=3] run scoreboard players set @s temp 2
 execute as @a[tag=mini_running] at @s if entity @s[y=20,dy=3] run scoreboard players set @s temp 1
-scoreboard players reset * layer
 execute as @a[tag=mini_running] run scoreboard players operation @s layer = @s temp
 
 # 进度判断