瀏覽代碼

修改僵尸刷新地点

LTCatt 6 年之前
父節點
當前提交
58fbd42a6b
共有 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