forum Forumsplay_arrow Minecraft fiber_manual_record Help

3

[SOLVED] how to teleport entities relative to their position

3 emeralds5 replies109 views
created 02/07/2019 10:52 am by zhekalevin
last reply 02/22/2019 5:51 am
Hello! From 17w45a changelog, /tp is now an alias for /teleport, meaning it teleports entities relative to the executor. How do I teleport them relative to their own position?
/execute as @e[type...] run tp @s ~ ~ ~ doesnt work, still considers the command block the executor.
please help!
Posted by avatar
zhekalevin
Level 13 : Journeyman Warrior
3

5 replies

1
02/08/2019 12:31 am
Level 4 : Apprentice Modder
HoboMaggot
avatar
"/tp is now an alias for /teleport, meaning it teleports entities relative to the executor."

Pretty sure that is wrong. Plus why are you playing in 17w45a???
Im also pretty sure this ^ was added already which means you can tp entities relative to them. For example https://www.youtube.com/watch?v=dr96bAt4Crk

Therefore the answer to your command is /execute as @e[type=...] run tp @s ^ ^ ^1 (to go forward where ever they are facing)
1
02/22/2019 5:51 am
Level 13 : Journeyman Warrior
zhekalevin
avatar
Thanks for completely ignoring my question and promoting a 10:xx youtube video of an outdated minecraft version.
The thread has been SOLVED as per the title. Your solution, however, is wrong regardless. I'm not "playing in 17w45a", 17w45a is a 1.13 snapshot which is now in effect on all current Minecraft versions.
The quote you said was wrong is a direct quote from the changelog, and it would take you 1 second to test that if you wanted to.
2
02/07/2019 11:48 am
Level 28 : Expert Robot
Nitrox Nova
avatar
was able to move all the horses up a block with the following:
/execute at @e[type=minecraft:horse] run tp @e[type=minecraft:horse,distance=0] ~ ~1 ~
Also, the command you gave works as a mob vacuum which I find incredibly amusing, so thank you for sharing
1
02/07/2019 12:32 pm
Level 13 : Journeyman Warrior
zhekalevin
avatar
Thanks! Solved!
1
02/07/2019 3:21 pm
Level 28 : Expert Robot
Nitrox Nova
avatar
no problem, glad I could help!

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome