mojira.dev
MCPE-238017

Client-side placement is incorrectly enabled for blocks that apply custom components using the "permutations" array

When a block that is being placed has a custom component with the onBeforePlayerPlace hook, it should not be placed on the client-side until this hook has ran on the server to avoid the placed permutation differing between the client and server.

However, when the custom component is applied in the permutations array, the game does not correctly identify that client placement should be prevented.

Steps to reproduce:

  • Download the attached add-on which adds a custom head block.

  • Place the block on top of other blocks.

Observed results:

  • The head does not initially face towards the player, taking a moment to update its direction

Expected results:

  • The onBeforePlayerPlace hook should run before the block appears to the client, preventing the direction of the head from shifting.

  • Client placement should still be supported when the head is being placed on the side of another block, as the custom component is only applied when the minecraft:block_face state is "up".

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media][media]

QuazChick

(Unassigned)

Unconfirmed

Multiple

26.20.26 Preview

Retrieved