소스 검색

调整陷阱的时间

LTCatt 6 년 전
부모
커밋
8c25b895a0

+ 1 - 1
data/mini/functions/colormatch/game/remove_ground.mcfunction

@@ -5,7 +5,7 @@ execute positioned 1001 11 4000 run clone ~ ~ ~ ~24 ~ ~24 1050 15 4000
 # tellraw @a [{"text":">> ","color":"gold","bold": true},{"text":"时间到!","color":"white","bold": false}]
 execute as @a at @s run function lib:sounds/hit
 # 重置分数
-scoreboard players set $countdown_fast mem 50
+scoreboard players set $countdown_fast mem 30
 scoreboard players set $color_match_type mem 1
 
 # 预备下一轮

+ 4 - 1
data/mini/functions/colormatch/game/start_new_round.mcfunction

@@ -4,7 +4,10 @@ function mini:colormatch/game/replace_wall
 execute positioned 1001 10 4000 run clone ~ ~ ~ ~24 ~ ~24 1050 15 4000
 
 # 设置倒计时
-scoreboard players remove $color_match_time mem 2
+execute if score $color_match_time mem matches 70.. run scoreboard players remove $color_match_time mem 10
+execute if score $color_match_time mem matches 40..69 run scoreboard players remove $color_match_time mem 5
+execute if score $color_match_time mem matches 25..39 run scoreboard players remove $color_match_time mem 2
+execute if score $color_match_time mem matches 15..20 run scoreboard players remove $color_match_time mem 1
 scoreboard players operation $countdown_fast mem = $color_match_time mem
 
 # 重置分数

+ 1 - 1
data/mini/functions/colormatch/tick2.mcfunction

@@ -5,4 +5,4 @@ execute if score $countdown_fast mem matches 0 if score $color_match_type mem ma
 
 # 显示当前剩余秒数
 execute if score $countdown_fast mem matches 1.. if score $color_match_type mem matches 0 run title @a actionbar [{"text":"地板消失: ","color":"red","bold": true},{"score": { "name": "$countdown_fast","objective": "mem"}}]
-execute if score $countdown_fast mem matches 1.. if score $color_match_type mem matches 1 run title @a actionbar [{"text":"下一轮: ","color":"red","bold": true},{"score": { "name": "$countdown_fast","objective": "mem"}}]
+execute if score $countdown_fast mem matches 1.. if score $color_match_type mem matches 1 run title @a actionbar [{"text":"下一轮: ","color":"green","bold": true},{"score": { "name": "$countdown_fast","objective": "mem"}}]