tick20.mcfunction 415 B

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