LTCatt před 6 roky
rodič
revize
ecc1847e18

+ 3 - 3
data/mini/functions/hotpm/game/pm_init.mcfunction

@@ -7,9 +7,9 @@ tellraw @a [{"text":">> ","color":"gold","bold": true},{"selector":"@a[tag=pm_ho
 # 强制观战
 execute at @s as @a[gamemode=spectator,distance=..0.1] run spectate @p[tag=pm_hoding]
 
-# 土豆爆炸时间 = 3.5 * 存活人数 + 3(秒)
-scoreboard players set $countdown_fast mem 3
-execute as @a[tag=mini_running] run scoreboard players add $countdown_fast mem 35
+# 土豆爆炸时间 = 3 * 存活人数 + 2(秒)
+scoreboard players set $countdown_fast mem 2
+execute as @a[tag=mini_running] run scoreboard players add $countdown_fast mem 3
 
 # 删除效果云
 kill @s[type=area_effect_cloud,tag=pm_boom]

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

@@ -23,7 +23,7 @@ gamemode spectator @s
 gamemode adventure @s[tag=!watcher,tag=!rejoining]
 
 # 设置玩家生命数量
-scoreboard players set @s[tag=!watcher,tag=!rejoining] mini_heart 2
+scoreboard players set @s[tag=!watcher,tag=!rejoining] mini_heart 3
 function mini:main/player_max_health
 # TODO 灭火无效
 

+ 1 - 4
data/mini/functions/hotpm/tick2.mcfunction

@@ -1,8 +1,5 @@
 # 土豆倒计时
-execute if score $countdown_fast mem matches 1.. run title @a actionbar [{"text":"土豆爆炸: ","color":"red","bold": true},{"score": { "name": "$countdown","objective": "mem"}}]
-
-# 给持有者播放音效
-execute as @a[tag=pm_hoding] at @s run function lib:sounds/creeper
+execute if score $countdown_fast mem matches 1.. run title @a actionbar [{"text":"土豆爆炸: ","color":"red","bold": true},{"score": { "name": "$countdown_fast","objective": "mem"}}]
 
 # 爆炸
 execute if score $countdown_fast mem matches 0 as @a[tag=pm_hoding] run function mini:hotpm/game/pm_boom

+ 4 - 1
data/mini/functions/hotpm/tick5.mcfunction

@@ -1,2 +1,5 @@
 # 传送
-execute as @a[gamemode=!spectator] at @s if block ~ ~-1 ~ minecraft:barrier run tp ~ ~17.5 ~
+execute as @a[gamemode=!spectator] at @s if block ~ ~-1 ~ minecraft:barrier run tp ~ ~17.5 ~
+
+# 给持有者播放音效
+execute as @a[tag=pm_hoding] at @s run function lib:sounds/creeper