LTCatt 6 years ago
parent
commit
a22f53a10e

+ 1 - 0
data/mini/functions/slime/game/clear_effect.mcfunction

@@ -0,0 +1 @@
+effect clear @a regeneration

+ 1 - 1
data/mini/functions/slime/game/set_attack.mcfunction

@@ -1 +1 @@
-execute as @e[type=slime] run attribute @s minecraft:generic.attack_damage base set 1.9
+execute as @e[type=slime] run attribute @s minecraft:generic.attack_damage base set 4

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

@@ -9,3 +9,7 @@ execute if score $countdown mem matches ..10 as @a at @s run function lib:sounds
 execute if score $countdown mem matches 10 run tellraw @a ["",{"text": ">> ","color":"aqua","bold": true},{"text": "球场马上就要关门了!","color":"aqua"}]
 # 0s:游戏结束
 execute if score $countdown mem matches 0 run function mini:main/game_end
+
+# 回复生命值
+effect give @a regeneration 1 10 true
+schedule function mini:slime/game/clear_effect 1t replace