--I've tried a bunch of times to figure out how to use the execute command to teleport properly, but I just can't quite understand it. I keep trying to teleport a player when they are detected at a certain spot, but then I run into an issue: I can either set the command block to constantly repeat, but that gets the player stuck FOREVER, or have it only go once, which also won't work, since I want it to be automatic.
--I can't give you the command(s) I made since that world is no deleted. It is so, because I ended up permanently stuck in the end due to the failed commands.
Yes, and I don't have the time to move even half a block before it teleports me again. How would I be able to play the map still when that thing is active? I don't know any way of remotely turning it off. But seriously, I think I was literally a block too far away, which is painful.
BTW, your profile picture makes me think of someone hallucinating due to drugs or something. Which is relevant but since I'm here I thought I might as well mention it. Anyway, let's not further discuss this since that is very off topic.
You are only supposed to teleport one direction. In terms of multiple people teleporting, that would depend on the situation, but they would always teleport to the same place. I figure I'd just use @p and @a accordingly for whether I want the closest player or all players.
Also, would I be able to use the spawnpoint command in the same way as the teleport? Because I also have a plan for having checkpoints, where the player is automatically detected and the spawn point set to where they currently stand. I'm just worried that it would end up setting the spawnpoint on the command block itself, thus suffocating them. That is very much not what I want.
Make sure that x,y,z coordinate and x,y,z, area in the bracket is around the area the player teleported to.
Final Note
Not sure if you are interested but if the players don't experience any xp level changes you can target them by level i.e. with the first command I would do.
-What is with the area and min stuff in there? Does RCB stand for Repeating Command Block? I've never hear that before, but when you said that that is what came to mind within a couple moments. It would also make some sense.
-The players will probably gain and use XP throughout the map. It's a fighting/adventure map, I expected the players to gain XP. If there is a way to set no maximum on the command, then I could use that to better define if someone can go to a certain part of the map. It's going to get really dangerous, and some places you realistically shouldn't go for a long time. The player can get weapons with 100+ sharpness, so what does that say about the soon-to-be-horde of enemies?
So the Min stands for minimum and the idea is that you want to find the least-most coordinate. Once the least-most coordinate is found the area stands for the length in blocks you want to include for the area you want to include for each of the directions.
For Example:
/kill @e[type=player,x=0,y=0,z=0,dx=3,dy=3,dz=3]
kills entities of type player within a 3x3x3 cube from the coordinate <0,0,0> to <3,3,3>
You can most certainly just do the level minimum and not put a maximum on it. You could do this.
Teleports entities with a level minimum of 1237 to that given location and because entities (other than players) can't have levels you should be able to leave out type=player.
You are correct in your assumption about RCB = repeating command block. Also ICB = impulse command block and CCB = chain command block.
--I've tried a bunch of times to figure out how to use the execute command to teleport properly, but I just can't quite understand it. I keep trying to teleport a player when they are detected at a certain spot, but then I run into an issue: I can either set the command block to constantly repeat, but that gets the player stuck FOREVER, or have it only go once, which also won't work, since I want it to be automatic.
--I can't give you the command(s) I made since that world is no deleted. It is so, because I ended up permanently stuck in the end due to the failed commands.
You usually don't have to delete a world... I think I have faced this teleport issue before.
Do you teleport there and then immediately back when it is set to repeating?
Yes, and I don't have the time to move even half a block before it teleports me again. How would I be able to play the map still when that thing is active? I don't know any way of remotely turning it off. But seriously, I think I was literally a block too far away, which is painful.
BTW, your profile picture makes me think of someone hallucinating due to drugs or something. Which is relevant but since I'm here I thought I might as well mention it. Anyway, let's not further discuss this since that is very off topic.
I did enjoy it for that reason lol.
Do you need them to only teleport one direction? We could do an easy fix if so. Are you planning to have several people teleport or just one?
You are only supposed to teleport one direction. In terms of multiple people teleporting, that would depend on the situation, but they would always teleport to the same place. I figure I'd just use @p and @a accordingly for whether I want the closest player or all players.
Also, would I be able to use the spawnpoint command in the same way as the teleport? Because I also have a plan for having checkpoints, where the player is automatically detected and the spawn point set to where they currently stand. I'm just worried that it would end up setting the spawnpoint on the command block itself, thus suffocating them. That is very much not what I want.
Do you have a world? I can come help you solve it.
For now....
A quick question do you mind posting your teleport command?
I would maybe try this just to see if it acts a little differently.
In a RCB put
/execute @e[type=player,x=xMin,y=yMin,z=zMin,dx=xArea,dy=yArea,dz=zArea] ~~~ teleport @e[type=player] # # #
(In those hashtags put your destination)
________________________________________________________________________________
Then for spawn point (if the spot they are teleporting to, or make it to, is where you want to set it.)
execute @e[type=player,x=xMin,y=yMin,z=zMin,dx=xArea,dy=yArea,dz=zArea] ~~~ spawnpoint @e[type=player] ~~~
Make sure that x,y,z coordinate and x,y,z, area in the bracket is around the area the player teleported to.
Final Note
Not sure if you are interested but if the players don't experience any xp level changes you can target them by level i.e. with the first command I would do.
/execute @e[lm=1237,l=1237,x=xMin,y=yMin,z=zMin,dx=xArea,dy=yArea,dz=zArea] ~~~ teleport @e[lm=1237,l=1237] # # #
the lm and l targets a player of level 1237 so if the player running through is that level it will only work on them.
also notice that we have removed type=player.
-What is with the area and min stuff in there? Does RCB stand for Repeating Command Block? I've never hear that before, but when you said that that is what came to mind within a couple moments. It would also make some sense.
-The players will probably gain and use XP throughout the map. It's a fighting/adventure map, I expected the players to gain XP. If there is a way to set no maximum on the command, then I could use that to better define if someone can go to a certain part of the map. It's going to get really dangerous, and some places you realistically shouldn't go for a long time. The player can get weapons with 100+ sharpness, so what does that say about the soon-to-be-horde of enemies?
So the Min stands for minimum and the idea is that you want to find the least-most coordinate. Once the least-most coordinate is found the area stands for the length in blocks you want to include for the area you want to include for each of the directions.
For Example:
/kill @e[type=player,x=0,y=0,z=0,dx=3,dy=3,dz=3]
kills entities of type player within a 3x3x3 cube from the coordinate <0,0,0> to <3,3,3>
You can most certainly just do the level minimum and not put a maximum on it. You could do this.
/execute @e[lm=1237,x=xMin,y=yMin,z=zMin,dx=xArea,dy=yArea,dz=zArea] ~~~ teleport @e[lm=1237] # # #
Teleports entities with a level minimum of 1237 to that given location and because entities (other than players) can't have levels you should be able to leave out type=player.
You are correct in your assumption about RCB = repeating command block. Also ICB = impulse command block and CCB = chain command block.