Try to figure out if it possible to set up a only safe zone within 13k blocks of spawn and any player outside that gets killed. Is this possible? please help with command thanks.
First, you need to figure out how large your safe zone is (what radius to use) for this example, I will use 15 blocks
Then place down a repeating command block with this command in it:
/tag @a[distance=15..] add outsideOfZone
don't forget to power the command block or make it always active
Now attach a chain command block to it and paste this in:
/kill @a[tag=outsideOfZone]
and another chain command block attached to the previous chain command block:
/tag @e[tag=outsideOfZone] remove outsideOfZone
A piece of advice: be extremely careful when using this sort of commands because it can backfire and kill you over and over again and you will have to use external tools to remove the command block (yes, it just happened to me)
Forgot tag command dont work on bedrock that probably this problem also .... this is a set back again... probably y I wanna play hytale... talking about how easy it is the change the game.. here I'm fighting tooth and nail for a concept
Forgot tag command dont work on bedrock that probably this problem also .... this is a set back again... probably y I wanna play hytale... talking about how easy it is the change the game.. here I'm fighting tooth and nail for a concept
Try to figure out if it possible to set up a only safe zone within 13k blocks of spawn and any player outside that gets killed. Is this possible? please help with command thanks.
Edit I'm on bedrock edition.
First, you need to figure out how large your safe zone is (what radius to use) for this example, I will use 15 blocks
Then place down a repeating command block with this command in it:
don't forget to power the command block or make it always active
Now attach a chain command block to it and paste this in:
and another chain command block attached to the previous chain command block:
A piece of advice: be extremely careful when using this sort of commands because it can backfire and kill you over and over again and you will have to use external tools to remove the command block (yes, it just happened to me)
Command block engineer // Developer // #TeamTrees
I trying this and I'm getting an syntax error on the first command on the word "distance" is this because I'm on bedrock?
Yeah i think so, I wrote this for Java edition and i don't know how commands work on bedrock.
Command block engineer // Developer // #TeamTrees
Struggles of bedrock gaming ...rip me ... thanks for trying I'll mess with what you gave me see if I can figure this out
will r= help instead?
Also I dont think the selector supports thousands of blocks
Now I get an error at the [..] ... lol I'm slowly getting somewhere with your guys help I appreciate this
r is the maximum radius for the command to run
rm is the mininum radius for the command to run
Forgot tag command dont work on bedrock that probably this problem also .... this is a set back again... probably y I wanna play hytale... talking about how easy it is the change the game.. here I'm fighting tooth and nail for a concept
Try kill @a[rm=15]