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
onBeforePlayerPlacehook 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_facestate is"up".
Thank you for helping us improve Minecraft! We saved your files: