LTCatt 6 роки тому
батько
коміт
3ab2080a7e

+ 1 - 0
data/ltw/functions/clock/tick2.mcfunction

@@ -11,3 +11,4 @@ execute if score $state mem matches 7 run function ltw:state/7/tick2
 
 
 # 全局倒计时
 # 全局倒计时
 execute if score $countdown_fast mem matches 1.. run scoreboard players remove $countdown_fast mem 1
 execute if score $countdown_fast mem matches 1.. run scoreboard players remove $countdown_fast mem 1
+scoreboard players remove @e[scores={countdown_fast=1..}] countdown_fast 1

+ 2 - 0
data/ltw/functions/init.mcfunction

@@ -29,6 +29,8 @@ scoreboard objectives remove temp
 scoreboard objectives add temp dummy
 scoreboard objectives add temp dummy
 scoreboard objectives remove countdown
 scoreboard objectives remove countdown
 scoreboard objectives add countdown dummy "倒计时"
 scoreboard objectives add countdown dummy "倒计时"
+scoreboard objectives remove countdown_fast
+scoreboard objectives add countdown_fast dummy "快速倒计时"
 scoreboard objectives remove health
 scoreboard objectives remove health
 scoreboard objectives add health health "生命值"
 scoreboard objectives add health health "生命值"
 scoreboard objectives remove health_disp
 scoreboard objectives remove health_disp

+ 1 - 1
data/mini/functions/parkour/player_intro.mcfunction

@@ -1,6 +1,6 @@
 # 向单个玩家展示小游戏介绍
 # 向单个玩家展示小游戏介绍
 tp @s[tag=!debug] 1010.96 26.83 1032.37 -385.24 16.67
 tp @s[tag=!debug] 1010.96 26.83 1032.37 -385.24 16.67
-tellraw @s ["",{"text":"\n >> 旅途 >>\n\n","color":"red","bold":true}," 沿途前进, 到达终点, 获得胜利!\n"]
+tellraw @s ["",{"text":"\n >> 旅途 >>\n\n","color":"gold","bold":true}," 沿途前进, 到达终点, 获得胜利!\n"]
 tellraw @s ["",{"text": " <完成制> ","color":"red","bold": true}, {"text":"根据完成跑酷的速度快慢决定排名。","color":"gray"}]
 tellraw @s ["",{"text": " <完成制> ","color":"red","bold": true}, {"text":"根据完成跑酷的速度快慢决定排名。","color":"gray"}]
 tellraw @s ["",{"text": " <和平环境> ","color":"light_purple","bold": true}, {"text":"无法攻击其他玩家。","color":"gray"}]
 tellraw @s ["",{"text": " <和平环境> ","color":"light_purple","bold": true}, {"text":"无法攻击其他玩家。","color":"gray"}]
 tellraw @s ["",{"text": " <额外道具> ","color":"aqua","bold": true}, {"text":"小游戏地图中存在 1 个蓝色道具与 1 个白色道具。","color":"gray"}]
 tellraw @s ["",{"text": " <额外道具> ","color":"aqua","bold": true}, {"text":"小游戏地图中存在 1 个蓝色道具与 1 个白色道具。","color":"gray"}]

+ 1 - 1
data/mini/functions/phantom/game_start.mcfunction

@@ -1,2 +1,2 @@
 gamerule doDaylightCycle true
 gamerule doDaylightCycle true
-scoreboard players set $countdown mem 105
+scoreboard players set $countdown mem 110

+ 1 - 1
data/mini/functions/phantom/player_intro.mcfunction

@@ -1,6 +1,6 @@
 # 向单个玩家展示小游戏介绍
 # 向单个玩家展示小游戏介绍
 tp @s[tag=!debug] 1062.34 27.11 6040.84 461.44 28.30
 tp @s[tag=!debug] 1062.34 27.11 6040.84 461.44 28.30
-tellraw @s ["",{"text":"\n >> 月夜狩猎 >>\n\n","color":"red","bold":true}," 击杀幻翼, 获得积分。但不要击杀会倒扣分的红色幻翼……\n"]
+tellraw @s ["",{"text":"\n >> 月夜狩猎 >>\n\n","color":"gold","bold":true}," 用三叉戟击杀幻翼获得积分。但不要击杀会倒扣分的红色幻翼……\n"]
 tellraw @s ["",{"text": " <积分制> ","color":"red","bold": true}, {"text":"太阳升起时游戏即会结束, 然后根据积分决定排名。","color":"gray"}]
 tellraw @s ["",{"text": " <积分制> ","color":"red","bold": true}, {"text":"太阳升起时游戏即会结束, 然后根据积分决定排名。","color":"gray"}]
 tellraw @s ["",{"text": " <PVE> ","color":"light_purple","bold": true}, {"text":"无法攻击其他玩家, 但可以杀死幻翼。","color":"gray"}]
 tellraw @s ["",{"text": " <PVE> ","color":"light_purple","bold": true}, {"text":"无法攻击其他玩家, 但可以杀死幻翼。","color":"gray"}]
 tellraw @s ["",{"text": " <原型> ","color":"gold","bold": true}, {"text":"此游戏目前仅用于玩法测试, 尚未进行修缮。","color":"gray"}]
 tellraw @s ["",{"text": " <原型> ","color":"gold","bold": true}, {"text":"此游戏目前仅用于玩法测试, 尚未进行修缮。","color":"gray"}]

+ 2 - 0
data/mini/functions/phantom/tick20.mcfunction

@@ -1,7 +1,9 @@
+
 # 显示倒计时
 # 显示倒计时
 execute if score $countdown mem matches ..10 run title @a times 3 14 2
 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 subtitle {"score":{"name":"$countdown","objective":"mem"}}
 execute if score $countdown mem matches ..10 run title @a title [""]
 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:提示游戏结束
 # -10s:提示游戏结束
 execute if score $countdown mem matches 10 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"text": "太阳即将升起!","color":"aqua"}]
 execute if score $countdown mem matches 10 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"text": "太阳即将升起!","color":"aqua"}]

+ 1 - 1
data/mini/functions/zombie/player_intro.mcfunction

@@ -1,6 +1,6 @@
 # 向单个玩家展示小游戏介绍
 # 向单个玩家展示小游戏介绍
 tp @s[tag=!debug] 1010.5 20 5006.0 0 25
 tp @s[tag=!debug] 1010.5 20 5006.0 0 25
-tellraw @s ["",{"text":"\n >> 猪海寻路 >>\n\n","color":"red","bold":true}," 猪灵正不断地涌现……努力生存, 成为最后的幸存者吧!\n"]
+tellraw @s ["",{"text":"\n >> 猪海寻路 >>\n\n","color":"gold","bold":true}," 猪灵正不断地涌现……努力生存, 成为最后的幸存者吧!\n"]
 tellraw @s ["",{"text": " <死亡淘汰制> ","color":"red","bold": true}, {"text":"生命无法自然恢复, 被猪灵杀死时即被淘汰。","color":"gray"}]
 tellraw @s ["",{"text": " <死亡淘汰制> ","color":"red","bold": true}, {"text":"生命无法自然恢复, 被猪灵杀死时即被淘汰。","color":"gray"}]
 tellraw @s ["",{"text": " <PVE> ","color":"light_purple","bold": true}, {"text":"无法攻击其他玩家, 但可以杀死猪灵。","color":"gray"}]
 tellraw @s ["",{"text": " <PVE> ","color":"light_purple","bold": true}, {"text":"无法攻击其他玩家, 但可以杀死猪灵。","color":"gray"}]
 tellraw @s ["",{"text": " <额外道具> ","color":"aqua","bold": true}, {"text":"将会随着时间推移生成 2 个白色道具。","color":"gray"}]
 tellraw @s ["",{"text": " <额外道具> ","color":"aqua","bold": true}, {"text":"将会随着时间推移生成 2 个白色道具。","color":"gray"}]