mojira.dev
MCPE-25534

Issue when teleporting with relative coordinates and decimals with Command Blocks

Update by @unknown:
Summary:
When trying to move a player by teleporting them by small amounts (Less than 1, eg 0.5 blocks), they do not move incrementally as they should.

Steps to Reproduce:

  1. Use this command several times (or in a repeating command block) {color:#d04437}/execute @p ~ ~ ~ tp @s ~.1 ~ ~{color}

Observed Results:
The player teleports to one location only, even if the command is run repeatedly.

Expected Results:
The player should get moved by 0.1 several times, incrementally moving the player along.

(For an example of how it should work, use whole numbers in the command, like this: {color:#d04437}/execute @p ~ ~ ~ tp @s ~2 ~ ~{color}

Screenshots/Videos attached: Yes

Notes:
Test world attached

[media]


Original Description:
If you teleport with relative coordinates with decimals like this (/tp ~.2 ~ ~), it works fine in chat, but if you do it with a repeating command block, it will just teleport you in the same location over and over again. This works when doing the command in chat, so I assume this is a bug with command blocks.

P.S, I did use /execute and /tp and neither fixed the issue.

Attachments

Comments 8

Not sure if I really understood what the problem here is, but if you put /tp ~.2 ~ ~ in a repeating and always active command block, it will always teleport you to the same position as the command block itself doesn't move and the relative coordinates therefore stay the same. This is the intended behaviour.

Sorry to confuse you, I meant if you put in a command block the /execute (Playername) ~ ~ ~ tp @s ~.2 ~ ~. It will stay in the same place, which in the Java edition, teleports the player .2 of a block continuously. In the Java Edition, both sets of commands in a command block produce the same output which is to teleport the player .2 of a block, but I was more concerned about the /execute not tping correctly.

Use /tp ~+0.2 ~ ~ .

I tried that and it ends up teleporting me to a block ex: 15.20 4 -5 when using the execute command.

This bug has been reported to our internal bug tracker for further testing and a fix. It is scheduled to be fixed in one of the future updates (no specific date can be provided).

Can't reproduce in 1.2.13

Cleaning up old tickets: This ticket has not been updated recently (~1 year+) so is being closed as Cannot Reproduce. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

TheRealBMan

(Unassigned)

82368

Confirmed

Windows

Windows 10

/execute, command_block

1.2.0.22, 1.2.0.25, 1.2.0.31

Retrieved