i built a secret base on my server, and i don't want anyone to know about it so i was wondering if there was a way to redirect anyone who teleports to me to a decoy location. so like if they do /tp yurcake it brings them somewhere else. i also wanna make an option to toggle this if possible. any help would be greatly appreciated!
For this, you can set a range to your base, and have this command :
/execute positioned x y z as @a[distance=..[range]] at @s if entity [pseudo][distance=..1] run tp x' y' z'
You have to change x y z by the coordinate of the middle of your base, [range] by the range of your base, [pseudo] by your pseudo, and x' y' z' where you want the player to be teleported.
If you're in your base and someone is at 1 block or less of you, it will teleport him
Don't know if it will work, I haven't try it, tell me if something is wrong. (you can test it by summon an armor_stand, change "@a[distance=..[range]]" in the command by "@e[distance=..[range], type=armor_stand]" and tp the armorstand on you)
is there a way to allow people to get in by walking or something? i want people to be able to get in if they know where it is. i just dont want people to tp to it
Maybe you can create a scoreboard that will store player position, and if the position change drastically, it will be because the player has teleport, and then you test if he is on your land.
i built a secret base on my server, and i don't want anyone to know about it so i was wondering if there was a way to redirect anyone who teleports to me to a decoy location. so like if they do /tp yurcake it brings them somewhere else. i also wanna make an option to toggle this if possible. any help would be greatly appreciated!
haha poop
For this, you can set a range to your base, and have this command :
You have to change x y z by the coordinate of the middle of your base, [range] by the range of your base, [pseudo] by your pseudo, and x' y' z' where you want the player to be teleported.
If you're in your base and someone is at 1 block or less of you, it will teleport him
Don't know if it will work, I haven't try it, tell me if something is wrong. (you can test it by summon an armor_stand, change "@a[distance=..[range]]" in the command by "@e[distance=..[range], type=armor_stand]" and tp the armorstand on you)
I like trains... OF CHAIN COMMAND BLOCKS !
is there a way to allow people to get in by walking or something? i want people to be able to get in if they know where it is. i just dont want people to tp to it
haha poop
Maybe you can create a scoreboard that will store player position, and if the position change drastically, it will be because the player has teleport, and then you test if he is on your land.
I like trains... OF CHAIN COMMAND BLOCKS !
i'll try that. thanks!
haha poop