2
0
LTCatt 5 жил өмнө
parent
commit
e7342001cd

+ 1 - 0
data/lib/functions/sounds/music/mini_slow.mcfunction

@@ -1,4 +1,5 @@
 # 播放小游戏 BGM(慢节奏)
+# 时长:1'36
 
 function lib:sounds/music/stop
 playsound minecraft:music_disc.mellohi music @s 0 1000000 0 1000000

+ 2 - 0
data/mini/functions/diamond/player_death.mcfunction

@@ -5,3 +5,5 @@ function mini:diamond/game/respawn1
 # 复活特效
 execute as @a at @s run function lib:sounds/error
 effect give @s blindness 3 5 true
+effect give @s weakness 20 1
+give @s wooden_pickaxe

+ 4 - 0
data/mini/functions/diamond/tick20.mcfunction

@@ -5,6 +5,10 @@ execute if score $countdown mem matches ..10 run title @a subtitle {"score":{"na
 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
 
+# 60s / 30s:雷达提示
+execute if score $countdown mem matches 60 run tellraw @a ["",{"text": ">> ","color": "aqua","bold": true},"玩家雷达将在 ",{"text": "30 秒","color": "aqua"}, "后开启!"]
+execute if score $countdown mem matches 30 run tellraw @a ["",{"text": ">> ","color": "aqua","bold": true},"玩家雷达已开启, 游戏将在 ",{"text": "30 秒","color": "aqua"}, "后结束!"]
+
 # 0s:游戏结束
 execute if score $countdown mem matches 0 run function mini:main/game_end
 

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

@@ -1,9 +1,11 @@
 
 # 更新钻石数量
 execute as @a[team=playing] store result score @s diamond run clear @s diamond 0
-effect give @a[scores={diamond=1..}] glowing 2 0 true
+execute if score $countdown mem matches ..30 run effect give @a glowing 2 0
+effect give @a[scores={diamond=1..}] glowing 2 0
 
 # 显示提示
 execute as @a[scores={diamond=1..},tag=!diamond_got] run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"selector": "@s"},{"text":" 获得了闪闪发光的钻石!","color":"aqua"}]
 execute as @a[scores={diamond=1..},tag=!diamond_got] as @a[distance=1..] run function lib:sounds/hit
-tag @a[scores={diamond=1..},tag=!diamond_got] add diamond_got
+tag @a remove diamond_got
+tag @a[scores={diamond=1..}] add diamond_got