LTCatt 5 年之前
父節點
當前提交
7bd9759088
共有 2 個文件被更改,包括 9 次插入 和 8 次删除
  1. 7 6
      data/mini/functions/diamond/tick20.mcfunction
  2. 2 2
      data/mini/functions/diamond/tick5.mcfunction

+ 7 - 6
data/mini/functions/diamond/tick20.mcfunction

@@ -8,13 +8,14 @@ execute if score $countdown mem matches ..10 as @a at @s run function lib:sounds
 # 170s:关闭循环播放
 execute if score $countdown mem matches 170 run scoreboard players set @a music_time 999
 
-# 60s / 30s:雷达提示
-execute if score $countdown mem matches 60 run tellraw @a ["",{"text": ">> ","color": "gold","bold": true},"玩家雷达将在 ",{"text": "20 秒 ","color": "gold"}, "后开启!"]
-execute if score $countdown mem matches 60 as @a run function lib:sounds/music/mini_middle
-execute if score $countdown mem matches 60 run scoreboard players set $bossbar_color mem 2
+# 70s / 30s:雷达提示
+execute if score $countdown mem matches 70 run tellraw @a ["",{"text": ">> ","color": "gold","bold": true},"玩家雷达将在 ",{"text": "30 秒 ","color": "gold"}, "后开启!"]
+execute if score $countdown mem matches 70 run scoreboard players set $bossbar_color mem 2
+execute if score $countdown mem matches 70 run function lib:bossbar/show
 execute if score $countdown mem matches 40 run tellraw @a ["",{"text": ">> ","color": "gold","bold": true},"玩家雷达已开启, 游戏将在 ",{"text": "40 秒 ","color": "gold"}, "后结束!"]
-execute if score $countdown mem matches 40 as @a run function lib:sounds/dragon_growl
-execute if score $countdown mem matches 60 run scoreboard players set $bossbar_color mem 1
+execute if score $countdown mem matches 40 as @a run function lib:sounds/music/mini_fast
+execute if score $countdown mem matches 40 run scoreboard players set $bossbar_color mem 1
+execute if score $countdown mem matches 40 run function lib:bossbar/show
 
 # 0s:游戏结束
 execute if score $countdown mem matches 0 run function mini:main/game_end

+ 2 - 2
data/mini/functions/diamond/tick5.mcfunction

@@ -1,8 +1,8 @@
 
 # 更新钻石数量
 execute as @a[team=playing] store result score @s diamond run clear @s diamond 0
-execute if score $countdown mem matches ..40 run effect give @a glowing 1000000 0 false
-effect give @a[scores={diamond=1..}] glowing 5 0 false
+execute if score $countdown mem matches ..40 run effect give @a glowing 1000000 0 true
+effect give @a[scores={diamond=1..}] glowing 5 0 true
 
 # 显示提示
 execute as @a[scores={diamond=1..},tag=!diamond_got] run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"selector": "@s"},{"text":" 获得了闪闪发光的钻石!","color":"aqua"}]