My friends and I are currently playing in teams against each other on a Minecraft server. We all have hidden bases and try to find and kill the other players if possible, etc. It's just a combat project. Now we've decided to make the project more interesting by starting a battle event every week like Capture the Flag or something. Now we have the problem that our bases are very far apart. Nevertheless, we want to meet each event at a certain place where we then fight under fair rules. Our idea is now to place command blocks that, when a certain player enters a certain place, teleports him to a certain other place. Example: Player A enters location 1. This will then be teleported to location 2. However, only player A can be teleported from location 1 to location 2. If another player enters location 1, nothing happens and this player is not teleported either. Does anyone know how to implement such a warp point that only certain players can use and if so what the command or the commands would be called.
Which version? 1.8?
Java or Bedrock Edition?
1.16.1 Java
You only have to insert this command for each player in a different command block (Repeat | Absolutely | Always active) and adapt it to the respective player:
/ execute as entity playername [x = xVonOrt1, y = yVonOrt1, z = zVonOrt1, distance = .Radius] run tp @s coordinatesVonOrt2
Perfect. A man of his trade as I see.