2
0
LTCatt 6 жил өмнө
parent
commit
cf0369bfb0

+ 2 - 0
data/mini/functions/zombie/game_init.mcfunction

@@ -13,3 +13,5 @@ tp @e[type=zombie] ~ -100 ~
 # 伤害管理
 team modify ltw friendlyFire false
 gamerule fallDamage false
+
+# FIXME 玩家生命值显示存在问题

+ 7 - 4
data/mini/functions/zombie/tick20.mcfunction

@@ -1,6 +1,9 @@
 # 随机召唤僵尸
-scoreboard players set $random_min mem 0
-scoreboard players set $random_max mem 2
+scoreboard players set $random_min mem 1
+scoreboard players set $random_max mem 4
 function lib:random
-execute if score $random mem matches 1 run summon zombie 1006.0 20.5 5013.0
-execute if score $random mem matches 2 run summon zombie 1015.0 20.5 5013.0
+execute if score $random mem matches 1 run summon zombie 1006.0 20.5 5013.0 {Tags:["new_zombie"]}
+execute if score $random mem matches 2 run summon zombie 1015.0 20.5 5013.0 {Tags:["new_zombie"]}
+team leave @e[type=zombie]
+team join ltw @e[type=zombie,tag=new_zombie]
+tag @e remove new_zombie