浏览代码

修改ass回血方式

HerobrineXia 5 年之前
父节点
当前提交
109ca6a0b6
共有 2 个文件被更改,包括 6 次插入 和 1 次删除
  1. 1 1
      data/mini/functions/ass/player_enter.mcfunction
  2. 5 0
      data/mini/functions/ass/tick20.mcfunction

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

@@ -13,7 +13,7 @@ gamerule naturalRegeneration false
 
 
 # 计分板重置
-scoreboard players set @s countdown_fast 0
+scoreboard players set @s countdown_fast 100
 scoreboard players set @s creeperUse 0
 
 # 传送玩家

+ 5 - 0
data/mini/functions/ass/tick20.mcfunction

@@ -10,5 +10,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
 
+# 回复生命值
+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
+