mojira.dev
MCPE-216825

The "faceLocation" property of custom component player interact events is not relative to the block

The position returned from the faceLocation property of events involving blocks should be relative to the north-west corner of the block. However, for the BlockComponentPlayerInteractEvent it is instead relative to the world origin (despite the docs claiming that it is block relative).

This means that it is inconsistent with other events and requires additional calculations in order to get the relative value.

Steps to reproduce:

  • Download, import and apply the attached behaviour pack to a world.

  • Place down the custom block and interact with it by right-clicking on it.

  • The faceLocation value is displayed in chat.

Observed results:

The faceLocation value represents world coordinates, such as 3.67 63.51 54.77.

Expected results:

The faceLocation value should be relative to the custom block, such as 0.67 0.51 0.77.

Attachments

Comments 1

Hi!

Can you please record and upload a video of this issue?
Can you also please check it on the latest version?

This ticket will automatically reopen when you reply.

QuazChick

(Unassigned)

Confirmed

Multiple

1.21.80.27 Preview, 1.21.73 Hotfix, 1.21.72 Hotfix

1.21.90.23 Preview

Retrieved