How can I tp a specific player within a radius of a command block to another location.
So I basically want when a specific player walks within say 100 blocks within a command (My base) they get teleported away from it.
Note:
-Keep in mind I do not want to teleport every player on the server, just 1 singular person.
-No plugins or scoreboard commands plz (Owner wont accept plugins and someone has made a minigame that uses scoreboard)
Why do I need this?
Im a server admin, I don't want an untrustworthy admin(has op) going to my base and taking items, instead I want him to get mad as he tries to get anywhere close to my base.
Everyone 'cept you gets teleported down by 100 in a spherical range of 100.
r=# is the area from the command block the command will effect.
You can erase the !yourname and just replace it with the players name you'd like to tp without the !.
The ! excludes a player or entity.
I'm not certain if
@e[type=!Player,name=otheradmin] would work or not.
But type and name work oddly.
Like you can do.
/execute @e[type=!Player,name=!Arrow] and you will execute at everything cept for players and arrows.
so [type=!Player,name=otheradmin] should exclude every player except for your target.
If it is always active or powered by redstone. You may have to start it back up after server resets or something like that to work right. (there would still be small windows for invasion)
What would be really friggin funny though is if you executed fireworkrocketentities at him.
Then he would have to tp away from your base or face the lag that would consume his fps (of course the fireworks would blind his view in 1st and 3rd person too)
My first post ever,
My question is:
How can I tp a specific player within a radius of a command block to another location.
So I basically want when a specific player walks within say 100 blocks within a command (My base) they get teleported away from it.
Note:
-Keep in mind I do not want to teleport every player on the server, just 1 singular person.
-No plugins or scoreboard commands plz (Owner wont accept plugins and someone has made a minigame that uses scoreboard)
Why do I need this?
Im a server admin, I don't want an untrustworthy admin(has op) going to my base and taking items, instead I want him to get mad as he tries to get anywhere close to my base.
What I know so far:
-I need a redstone timer/clock
-perhaps 2 command blocks
Anyone have any ideas how to make this possible?
-
View User Profile
-
View Posts
-
Send Message
Curse Premium/tp @e[type=Player,name=!neuxdabomb,r=100] ~ ~-100 ~
Everyone 'cept you gets teleported down by 100 in a spherical range of 100.
r=# is the area from the command block the command will effect.
You can erase the !yourname and just replace it with the players name you'd like to tp without the !.
The ! excludes a player or entity.
I'm not certain if
@e[type=!Player,name=otheradmin] would work or not.
But type and name work oddly.
Like you can do.
/execute @e[type=!Player,name=!Arrow] and you will execute at everything cept for players and arrows.
so [type=!Player,name=otheradmin] should exclude every player except for your target.
If it is always active or powered by redstone. You may have to start it back up after server resets or something like that to work right. (there would still be small windows for invasion)
What would be really friggin funny though is if you executed fireworkrocketentities at him.
Then he would have to tp away from your base or face the lag that would consume his fps
(of course the fireworks would blind his view in 1st and 3rd person too)
Thanks for the replies,
I have tried out Skewley's suggestion (Works) Im now modifying to have 2 requirements to enter the zone, 1. Tag one 2. Potion effect.
Gurujive, I will test yours out next (With the fireworks :D)
Can I please get some screenshots of how I would set out this?
This is so other viewers of this topic may understand easily how to do this.