/tp problem
I am making a map where people ride boats on packed ice. I am using a /execute command to detect when they near a specific location and tp them to another here are the two commands (they are at different parts in the map)
/execute @e[type=!Player] ~ ~ ~ detect ~ ~-2 ~ wool 6 tp @e[type=!Player,r=1] 88 31 -22
/execute @e[type=!Player] ~ ~ ~ detect ~ ~-3 ~ wool 6 tp @e[type=!Player,r=1] 23 77 -70
the first one works fine, and when a player in a boat rides over the wool then they are BOTH teleported to the correct location. However the second command does not work. when you ride over it, it teleports the boat but not the player and when hou shift it then kicks you out of the boat at the spot it was teleported. I have tried using different hights and blocks for the /execute but nothing works. I have also tried just teleporting @e[type=!Player] but it does not do anything. any help is much appreciated thanks.
Environment
windows 10 hp pavillion
Created Issue:
/tp proble,
I am making a map where people ride boats on packed ice. I am using a /execute command to detect when they near a specific location and tp them to another here are the two commands (they are at different parts in the map)
/execute @e[type=!Player] ~ ~ ~ detect ~ ~-2 ~ wool 6 tp @e[type=!Player,r=1] 88 31 -22
/execute @e[type=!Player] ~ ~ ~ detect ~ ~-3 ~ wool 6 tp @e[type=!Player,r=1] 23 77 -70
the first one works fine, and when a player in a boat rides over the wool then they are BOTH teleported to the correct location. However the second command does not work. when you ride over it, it teleports the boat but not the player and when hou shift it then kicks you out of the boat at the spot it was teleported. I have tried using different hights and blocks for the /execute but nothing works. I have also tried just teleporting @e[type=!Player] but it does not do anything. any help is much appreciated thanks.
Environment
windows 10 hp pavillion
/tp proble,/tp problem
Can you try to manually teleport them using the volume arguments? Or do you want to test if they are on wool first? Maybe try this?
First part of the /execute command detects all players and if one of them has a pink wool two blocks below them, the second part of the command automatically makes the player an executor and when the @a[c=1] part tests for the nearest player to the executed command, it automatically detects the executor as the closest player to the command and should teleport them to the location 88, 31, -22. If the command above does not work, try using dx, dy, dz for the commands.
By the way, this place is a bug reporting area and not a forum, please go to other forums such as Planet Minecraft and discuss your issue there.
Tan Chin Cheern Side note: never use @a and @p in the same command, @a can target dead players, @p can't, to prevent issues you have to use @a[c=1] then.
Corrected your command.
Thanks for the help everyone. Sorry if this wasn't supposed to be posted here, i thought this was a bug because it tped the boat the first time, but not the second. Checking to see if it works now.
Update: The problem is not teleporting the player or the boat. The problem is that the boat and the player are not teleported together. This is what i think is a bug. For some reason i can be riding a boat and get teleported in the boat to the correct location, but the second one kicks me out.
Update 2: my original command works at a close distance by dose not seem to work if its out of the chunk. This could be the problem, not sure if it is a bug or not, but when it does not work i am still technically in the boat. I cannot place blocks an if i try to get back into the boat then i get tped several blocks to the side.
@Dan Don't think you can teleport players along with their passenger entity...?
@Tan it works but only at specific locations. wierd. I had to move the tp location closer to where it tps you and it works. I dont know what was wrong with it but i got it to do what i needed. thanks for the help.