Преглед изворни кода

Merge branch 'master' of github.com:00ll00/LTW3

00ll00 пре 6 година
родитељ
комит
0150275d8d
1 измењених фајлова са 10 додато и 6 уклоњено
  1. 10 6
      data/mini/functions/zombie/tick20.mcfunction

+ 10 - 6
data/mini/functions/zombie/tick20.mcfunction

@@ -1,9 +1,13 @@
 # 随机召唤僵尸
 scoreboard players set $random_min mem 1
-scoreboard players set $random_max mem 4
+scoreboard players set $random_max mem 10
 function lib:random
-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
+
+execute if score $random mem matches 1..2 positioned 1019.0 18.1 5013.0 unless entity @e[type=zombie,distance=..1] run summon zombie ~ ~ ~
+execute if score $random mem matches 3..4 positioned 1002.0 18.1 5013.0 unless entity @e[type=zombie,distance=..1] run summon zombie ~ ~ ~
+execute if score $random mem matches 5 positioned 1002.5 13.1 5002.5 unless entity @e[type=zombie,distance=..1] run summon zombie ~ ~ ~
+execute if score $random mem matches 6 positioned 1018.5 13.1 5023.5 unless entity @e[type=zombie,distance=..1] run summon zombie ~ ~ ~
+
+# team leave @e[type=zombie]
+# team join ltw @e[type=zombie,tag=new_zombie]
+# tag @e remove new_zombie