TransWikia.com

How to teleport to a specific place but near player

Arqade Asked on August 26, 2021

Well i’m triying to make a stand (From jojo’s bizarre adventure) On minecraft, all good, i added the team to erase the collisions, and the Friendly fire. But i got a dismiss, Everytime the command teleport the husk to me, it teleports to my exact coords, but i want it teleports the Husk to 1 block far than me

One Answer

You could do

execute as <player selector> at @s positioned ~<x offset> ~<y offset> ~<z offset> run tp <husk selector> ~ ~ ~

The positioning offset is based on x y and z cords. For raycasting use the ^ instead of the ~ for the offset. ^ ^ ^1 is forwards. ^ ^ ^-1 is backwards. ^ ^1 ^ is upwards. ^ ^-1 ^ is downwards. ^1 ^ ^ is to the left. ^-1 ^ ^ is to the right.

Correct answer by randomuser922 on August 26, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP