Mojira Archive
MCPE-25534

Issue when teleporting with relative coordinates and decimals with Command Blocks

Update by [Mojang] Mega_Spud (Jay Wells):
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) /execute @p ~ ~ ~ tp @s ~.1 ~ ~

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: /execute @p ~ ~ ~ tp @s ~2 ~ ~

Screenshots/Videos attached: Yes

Notes:
Test world attached Relative Coord TP.mcworld


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.

Cannot Reproduce

TheRealBMan

2017-08-27, 08:09 PM

2019-04-10, 02:16 PM

2019-04-10, 02:16 PM

0

0

Confirmed

82368

/execute, command_block

1.2.0.22, 1.2.0.25, 1.2.0.31

-