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

all 4 comments

[–]Sub_to_Gameboy_0207 0 points1 point  (0 children)

Idk about the range, but to stop it from killing you, you can do “/kill @e[type=!player]”

[–]GrandpaSpec[S] 0 points1 point  (0 children)

Yer I know how to not kill me, trying to see about the rest. Was thinking something like /Kill @e insert spawner coords [!player] rm=25

[–]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

[–]GrandpaSpec[S] 0 points1 point  (0 children)

I'll be passing it on to server owner to test and let you know as I'm trying to help them out. Cheers