Quellcode durchsuchen

Merge branch 'master' of https://github.com/LTCatt/LTW3

LTCatt vor 6 Jahren
Ursprung
Commit
035d52988f

+ 4 - 3
data/mini/functions/zombie/game/damage_taken.mcfunction

@@ -1,3 +1,4 @@
-# TODO 判断玩家是否拥有无敌,如果没有然后再加无敌效果
-# effect give @s resistance 2 4
-effect give @s speed 2 1
+# 给予效果并设置分数
+execute unless score @s countdown matches 1.. run effect give @s resistance 2 4
+execute unless score @s countdown matches 1.. run effect give @s speed 2 1
+execute unless score @s countdown matches 1.. run scoreboard players set @s countdown 3

+ 0 - 2
data/mini/functions/zombie/game/give_equip.mcfunction

@@ -11,5 +11,3 @@ function lib:random
 execute if score $random mem matches 1..2 run replaceitem entity @s weapon.mainhand minecraft:crossbow
 execute if score $random mem matches 1..2 run replaceitem entity @s weapon.mainhand minecraft:crossbow
 execute if score $random mem matches 3..4 run replaceitem entity @s weapon.mainhand minecraft:golden_sword
 execute if score $random mem matches 3..4 run replaceitem entity @s weapon.mainhand minecraft:golden_sword
 execute if score $random mem matches 2..3 run replaceitem entity @s armor.legs minecraft:golden_leggings
 execute if score $random mem matches 2..3 run replaceitem entity @s armor.legs minecraft:golden_leggings
-
-# TODO : [HIM] 被猪灵打了之后给予 2 秒无敌和速度