I'm trying to create a kind of portal in the 1.8.
The prerequisites: A player who comes near this portal should be teleported somewhere else. The whole thing should work without Redstone.
My Command: / execute if @p [distance = 3] at @s run teleport @s -120 74 338
I hope to find help here and thank you in advance for each of the helpful contribution!
I have to disappoint you several times regarding the existing command.
Unfortunately, in the 1.8, there's not yet the execute-type command. Also, if you put the command in a command block like this, you will not be teleported because the command-executing player (@s) is teleported (that is, the command block that can't be teleported). In addition, you only select those players who are exactly three blocks away, not closer, not farther away.
If so, the command should look like this: / execute as @a [distance = .3] at @s run tp @s -120 74 338
Or just because the first part with execute is irrelevant for the tp command: / tp @a [distance = .3] -120 74 338
But this is only valid for 1.13+. For the 1.8, your command would just be this one: / tp @a [r = 3] -120 74 338
Now you want it all without Redstone? What exactly do you mean? Maybe this: you can just put one command block somewhere else and expand the selector a bit: / tp @a [r = 3, x = 123, y = 456, z = 789] -120 74 338
Simply replace the coordinates in bold and players will be selected around this coordinate in the radius of 3 blocks. From 1:12 you can also use functions, from 1.13 you can work with datapacks. Which I would advise you too. This makes it much easier to keep track of the commands and it allows some cool tricks.
Hope that helps you, if you have any questions, just leave it here as a comment!
First of all thank you for your really helpful contribution and that you took the time!
Only it is that it is with the without Redstone, something different thought:
A player runs towards a wall and is supposed to be teleported automatically without anything to do when it's in that radius. On the server is namely the plugin Worldguard, with which I ran the command / stoplag, in order to build better (To avoid annoying block updates). That's why without Redstone.
Repeat command blocks are not in the 1.8, right? Then I have no way of doing that without using a Redstone clock. You could possibly use these here:
This is the fastest clock possible in the 1.8. If your plugin does not prevent that.