|
|
@@ -1,36 +1,11 @@
|
|
|
|
|
|
-# 属性提升 1
|
|
|
-execute if score $countdown mem matches 100 run function mini:slime/game/set_attack
|
|
|
-execute if score $countdown mem matches 100 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "史莱姆的攻击力提高了!","color":"red"}]
|
|
|
-execute if score $countdown mem matches 100 as @a at @s run function lib:sounds/error
|
|
|
-
|
|
|
-# 召唤提示 1
|
|
|
-execute if score $countdown mem matches 85 run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"text": "新的史莱姆将在 5 秒后空投到球场中央!","color":"gold"}]
|
|
|
-execute if score $countdown mem matches 85 as @a at @s run function lib:sounds/error
|
|
|
-# 召唤 1
|
|
|
-execute if score $countdown mem matches 80 run function mini:slime/game/summon
|
|
|
-execute if score $countdown mem matches 80 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "新的史莱姆已空投!","color":"red"}]
|
|
|
-execute if score $countdown mem matches 80 as @a at @s run function lib:sounds/teleport
|
|
|
-
|
|
|
-# 属性提升 2
|
|
|
-execute if score $countdown mem matches 60 run function mini:slime/game/set_attack
|
|
|
-execute if score $countdown mem matches 60 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "史莱姆的攻击力提高了!","color":"red"}]
|
|
|
-execute if score $countdown mem matches 60 as @a at @s run function lib:sounds/error
|
|
|
-
|
|
|
-# 速度提升
|
|
|
-execute if score $countdown mem matches ..40 run effect give @e[type=slime] speed 2 6
|
|
|
-execute if score $countdown mem matches 40 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "史莱姆的速度提高了!","color":"red"}]
|
|
|
-execute if score $countdown mem matches 40 as @a at @s run function lib:sounds/error
|
|
|
-
|
|
|
-# 属性提升 3
|
|
|
-execute if score $countdown mem matches 20 run function mini:slime/game/set_attack
|
|
|
-execute if score $countdown mem matches 20 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "史莱姆的攻击力提高了!","color":"red"}]
|
|
|
-execute if score $countdown mem matches 20 as @a at @s run function lib:sounds/error
|
|
|
-
|
|
|
-# 召唤提示 2
|
|
|
-execute if score $countdown mem matches 6 run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"text": "新的史莱姆将在 5 秒后空投到球场中央!","color":"gold"}]
|
|
|
-execute if score $countdown mem matches 6 as @a at @s run function lib:sounds/error
|
|
|
-# 召唤 2
|
|
|
-execute if score $countdown mem matches 1 run function mini:slime/game/summon
|
|
|
-execute if score $countdown mem matches 1 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "新的史莱姆已空投!","color":"red"}]
|
|
|
-execute if score $countdown mem matches 1 as @a at @s run function lib:sounds/teleport
|
|
|
+# 显示倒计时
|
|
|
+execute if score $countdown mem matches ..10 run title @a times 3 14 2
|
|
|
+execute if score $countdown mem matches ..10 run title @a subtitle {"score":{"name":"$countdown","objective":"mem"}}
|
|
|
+execute if score $countdown mem matches ..10 run title @a title [""]
|
|
|
+execute if score $countdown mem matches ..10 as @a at @s run function lib:sounds/hit2
|
|
|
+
|
|
|
+# -10s:提示游戏结束
|
|
|
+execute if score $countdown mem matches 10 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"text": "球场马上就要关门了!","color":"aqua"}]
|
|
|
+# 0s:游戏结束
|
|
|
+execute if score $countdown mem matches 0 run function mini:main/game_end
|