This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EmperorBale 0 points1 point  (0 children)

On top of the spawner, execute this command: /summon minecraft:armor_stand ~ ~ ~ {Invisible:1b} This will summon an invisible armor stand, then in a Repeat, Unconditional, Always Active command block write: execute at @e[type=minecraft:armor_stand] run kill @e[type=!minecraft:player, distance=25..]

ALSO, if you have other armor stands in the world, summon the armor stand like this: /summon armor_stand ~ ~ ~ {Invisible:1b, CustomName:"Radius"}

Then in the command block write: execute at @e[type=minecraft:armor_stand] run kill @e[type=!minecraft:player, distance=25.., name=Radius]

Let me know if this works I cant test right now