tick20.mcfunction 778 B

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