mojira.dev
MC-195750

/tp with relative rotation doesn't work properly

When I enter the command /tp @ ~ ~ ~ ~45 ~ or anything similar into a command block, the command ignores the ~ before the 45, and just sets my rotation to 45 in all cases. This command works properly when entered in chat manually. The command also fails to run properly if it is set inside of an /execute command within a command block like so: /execute if entity @p[distance=..6] run tp @p ~ ~ ~ ~45 ~

Attachments

Comments 1

To be relative to the player's rotation, you need to provide that context to the command, such as by including execute rotated as @p or execute at @p

John Klubertanz

(Unassigned)

Unconfirmed

(Unassigned)

1.16.1

Retrieved