summon_skeleton.mcfunction 1.1 KB

1234567891011121314151617181920
  1. # 召唤唤魔者
  2. scoreboard players set $random_min mem 0
  3. scoreboard players set $random_max mem 4
  4. function lib:random
  5. execute if score $random mem matches 0 positioned 1019.0 20.1 5002.0 unless entity @e[tag=mini_mob,distance=..1] run summon skeleton
  6. execute if score $random mem matches 1 positioned 1002.0 19.1 5016.0 unless entity @e[tag=mini_mob,distance=..1] run summon skeleton
  7. execute if score $random mem matches 2 positioned 1019.0 13.1 5013.0 unless entity @e[tag=mini_mob,distance=..1] run summon skeleton
  8. execute if score $random mem matches 3 positioned 1002.0 13.1 5024.0 unless entity @e[tag=mini_mob,distance=..1] run summon skeleton
  9. execute if score $random mem matches 4 positioned 1002.0 13.1 5002.0 unless entity @e[tag=mini_mob,distance=..1] run summon skeleton
  10. tag @e[type=skeleton] add mini_mob
  11. tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"text": "骷髅 ","color":"gold"},"已出现!"]
  12. # 提高追踪范围
  13. execute as @e[type=evoker] run attribute @s generic.follow_range base set 35
  14. # 关闭怪物间友伤
  15. team join white @e[tag=mini_mob]