00ll00 6 年之前
父节点
当前提交
cab005f533
共有 2 个文件被更改,包括 4 次插入 和 4 次删除
  1. 1 1
      data/mini/functions/phantom/player_enter.mcfunction
  2. 3 3
      data/mini/functions/phantom/tick20.mcfunction

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

@@ -7,7 +7,7 @@ title @s actionbar ""
 effect clear @s
 effect give @s saturation 1000000 0 true
 effect give @s instant_health 10 0 true
-gamerule naturalRegeneration true
+gamerule naturalRegeneration false
 
 # 设置玩家生命
 attribute @s generic.max_health base set 20

+ 3 - 3
data/mini/functions/phantom/tick20.mcfunction

@@ -12,6 +12,6 @@ execute if score $countdown mem matches ..10 as @a at @s run function lib:sounds
 execute if score $countdown mem matches 0 run function mini:main/game_end
 
 # 回复生命值
-# execute if score $twice mem matches 1 run effect give @a regeneration 1 10 true
-# execute if score $twice mem matches 1 run schedule function mini:phantom/game/clear_effect 1t replace
-# effect clear @a regeneration
+execute if score $twice mem matches 1 run effect give @a regeneration 1 10 true
+execute if score $twice mem matches 1 run schedule function mini:phantom/game/clear_effect 1t replace
+effect clear @a regeneration