【指令】怪物生成點,代替刷怪籠,適用于rpg

/scoreboard players set @e[type=armor_stand,name=生怪點] a 0
/execute @etscores={a=1},type=!armor_stand] ~~~ scoreboard players add @e[type=armor_stand,r=20,name=生怪點] a 1
/execute @e[type=armor_stand,name=生怪點,scores={a=..4}] ~~~ summon zombie ~~~
/execute @e[type=armor_stand,name=生怪點] ~~~ scoreboard players add @e[type=zombie,r=5] a 0
/execute @e[scores={a=0},type=!armor_stand了 ~~~ spreadplayers ~ ~ 1 5 @s
/scoreboard players set @e[scores={a=0},type=!armor_stand] a 1
標簽: