ソースを参照

各种小修改

LTCatt 5 年 前
親
コミット
d3b9e0f93b

+ 1 - 1
data/mini/functions/ass/game/give_creeper.mcfunction

@@ -4,4 +4,4 @@ clear @s creeper_spawn_egg{game_item:1b}
 execute if data entity @s Inventory[{Slot:-106b}] run scoreboard players set @s item_slot -106
 execute if data entity @s Inventory[{Slot:-106b}] at @s run function item:pop_slot/return_item
 
-replaceitem entity @s weapon.offhand creeper_spawn_egg{game_item:1b,display:{Name:'{"text":"苦力怕刷怪蛋","italic":false}'},EntityTag:{CustomName:'',ignited:1b,Fuse:30s,AbsorptionAmount:1000},CanPlaceOn:["#mini:creeper_block"],HideFlags:16} 1
+replaceitem entity @s weapon.offhand creeper_spawn_egg{game_item:1b,display:{Name:'{"text":"苦力怕刷怪蛋","italic":false}'},EntityTag:{CustomName:'',ignited:1b,Fuse:40s,AbsorptionAmount:1000},CanPlaceOn:["#mini:creeper_block"],HideFlags:16} 1

+ 3 - 3
data/mini/functions/ass/game_start.mcfunction

@@ -1,12 +1,12 @@
 # 游戏结束倒计时
-scoreboard players set $countdown mem 165
+scoreboard players set $countdown mem 120
 
 # HUD
 scoreboard objectives setdisplay list health_disp
 scoreboard objectives setdisplay belowName health_disp
 scoreboard objectives setdisplay sidebar
-scoreboard players set $bossbar_color mem 4
-scoreboard players set $countdown_max mem 165
+scoreboard players set $bossbar_color mem 3
+scoreboard players set $countdown_max mem 120
 scoreboard players set $bossbar_type mem 2
 function lib:bossbar/show
 bossbar set mini:blue name "剩余时间"

+ 1 - 1
data/mini/functions/ass/player_enter.mcfunction

@@ -1,5 +1,5 @@
 # 单个玩家开始小游戏时执行
-function lib:sounds/music/mini_middle
+function lib:sounds/music/mini_secret
 title @s clear
 title @s actionbar ""
 

+ 10 - 14
data/mini/functions/ass/tick20.mcfunction

@@ -1,19 +1,15 @@
-# 强制死亡机制
-execute if score $countdown mem matches 45 run tellraw @a ["",{"text": ">> ","color": "gold","bold": true},{"text": "即死模式已开启, 游戏将在 ","color": "gold"},"45 秒 ", {"text": "后结束","color": "gold"}]
-execute if score $countdown mem matches 45 run scoreboard players set $bossbar_color mem 1
-execute if score $countdown mem matches 45 run function lib:bossbar/show
-execute if score $countdown mem matches ..45 run effect give @a[team=playing] wither 60 1 true
 
-# 显示倒计时
-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
+# 强制死亡机制
+execute if score $countdown mem matches 21 run tellraw @a ["",{"text": ">> ","color": "gold","bold": true},{"text": "强制死亡将在 20 秒后开启!","color": "gold"}]
+execute if score $countdown mem matches 1 run tellraw @a ["",{"text": ">> ","color": "gold","bold": true},{"text": "强制死亡已开启!","color": "gold"}]
+execute if score $countdown mem matches 1 run scoreboard players set $bossbar_color mem 1
+execute if score $countdown mem matches 1 run function lib:bossbar/show
+execute if score $countdown mem matches 1 as @a at @s run function lib:sounds/music/mini_fast
+execute if score $countdown mem matches 1 as @a at @s run function lib:sounds/dragon_growl
+execute if score $countdown mem matches ..0 run effect give @a[team=playing] wither 60 1 true
 
 # 回复生命值
 execute if score $foursec mem matches 1 run effect give @a[team=playing] regeneration 1 10 true
 execute if score $foursec mem matches 1 run schedule function mini:diamond/game/clear_effect 1t replace
-
-# 0s:游戏结束
-execute if score $countdown mem matches 0 run function mini:main/game_end
-
+execute if score $foursec mem matches 3 run effect give @a[team=playing] regeneration 1 10 true
+execute if score $foursec mem matches 3 run schedule function mini:diamond/game/clear_effect 1t replace