summon_zombie.mcfunction 1.4 KB

12345678910111213141516
  1. # 随机召唤僵尸或尸壳
  2. scoreboard players set $random_min mem 0
  3. scoreboard players set $random_max mem 11
  4. function lib:random
  5. # 尸壳
  6. execute if score $random mem matches 0 positioned 1019.0 18.1 5013.0 unless entity @e[tag=mini_mob,distance=..1] run summon husk ~ ~ ~ {Tags:["mini_mob"]}
  7. execute if score $random mem matches 1 positioned 1002.0 18.1 5013.0 unless entity @e[tag=mini_mob,distance=..1] run summon husk ~ ~ ~ {Tags:["mini_mob"]}
  8. execute if score $random mem matches 2 positioned 1002.5 13.1 5002.5 unless entity @e[tag=mini_mob,distance=..1] run summon husk ~ ~ ~ {Tags:["mini_mob"]}
  9. execute if score $random mem matches 3 positioned 1018.5 13.1 5023.5 unless entity @e[tag=mini_mob,distance=..1] run summon husk ~ ~ ~ {Tags:["mini_mob"]}
  10. # 僵尸
  11. execute if score $random mem matches 4..5 positioned 1019.0 18.1 5013.0 unless entity @e[tag=mini_mob,distance=..1] run summon zombie ~ ~ ~ {Tags:["mini_mob"]}
  12. execute if score $random mem matches 6..7 positioned 1002.0 18.1 5013.0 unless entity @e[tag=mini_mob,distance=..1] run summon zombie ~ ~ ~ {Tags:["mini_mob"]}
  13. execute if score $random mem matches 8..9 positioned 1002.5 13.1 5002.5 unless entity @e[tag=mini_mob,distance=..1] run summon zombie ~ ~ ~ {Tags:["mini_mob"]}
  14. execute if score $random mem matches 10..11 positioned 1018.5 13.1 5023.5 unless entity @e[tag=mini_mob,distance=..1] run summon zombie ~ ~ ~ {Tags:["mini_mob"]}