mojira.dev
MC-133388

Teleport being gitchy

Using a repeat command block with a command like /tp (player) ^ ^ ^3 will not teleport in the direction the player is facing. Instead, it makes the player get stuck in one spot, and it made me have to delete my minecraft 1.13-pre7 world.

How to reproduce:

Run /give (player) command_block. Place it down, type "tp (username) ^ ^ ^3 and set it to repeat. Put a lever on it and flick the lever. It does not work the way it should.

Attachments

Comments 4

This issue occurs because the command block is executing the command, and teleporting you three blocks based on where the command block is facing.
To fix, have it run

/execute as (player) run tp @s ^ ^ ^3

Ahh, thanks. I thought it was a glitch, so its good to know that it isnt.

Update: That doesn't work either. It teleports the player to a spot 3 blocks away from the command block still. It might be a glitch, still

/execute as (player) at @s run tp @s ^ ^ ^3

Thanks. That helps, now i have a little thing in my Minecraft world!

Chaelsie Adkins

(Unassigned)

Unconfirmed

Minecraft 1.13-pre7

Retrieved