Mojira Archive
MCPE-165231

The /tp @e[type=zombie] ~~2~~3 won't work in a command block

Steps to reproduce

  1. Put this in a repeat, always active command block: teleport @e[type = !player] ~ ~2 ~ ~5
  2. Summon an armor stand.
  3. Change the command to: teleport @e[type = !player] ~ ~2 ~ 5

Expected results

In step (2) the armor stand spins because the rotation argument is applied relative to the targeted entity's current rotation. In step (3) it faces 5 degrees clockwise of south.

Observed results

In step (2) the armor stand dose not spin, and in both steps (2) and (3) it faces 5 degrees clockwise of due south. In other words, the relative rotation coordinate "~5" is treated as an absolute coordinate "5" inside a command block.


after i updated the game and loaded up my world and creat new one and i realized

the /tp @e[type=zombie] ~ ~2 ~ ~3 should work and make the entity spin but now it didn't

Unresolved

king12334

2022-12-15, 07:06 PM

2024-10-02, 03:36 PM

2

3

Confirmed

947615

1.19.51, 1.21.31 Hotfix

-