mojira.dev
MCPE-219480

q.position(1) returns the position of the camera, not the feet

The bug

The q.position(1) molang query is supposed to return the Y position of the entity. This works correctly for all entities other than the player. The result returned by the player is 1.62 greater than it should be.

How to reproduce

  1. Download and open the attached world

  2. Hold the two different items in your hand and look at the display on your screen and above the frog

Expected results

The “q.position(1)” line should always display 4.0

Observed results

The line displays 5.62 on the player on-screen display

Attachments

Comments 1

tryashtar

(Unassigned)

Unconfirmed

Windows

1.21.90.23 Preview, 1.21.80

Retrieved