Custom block placed through item component "minecraft:block_placer" does not read "query.block_face" properly on "minecraft:on_player_placing" context
Partner Rank: 3
Partner Team Reporting: Starfish Studios
Verification builds: ver. 1.19.6022.0, build 12793068
Summary:
Custom block placed thought an item with component "minecraft:block_placer" does not read "query.block_face" properly on "minecraft:on_player_placing" context.
Impact:
This bug prevents the properly rotation of a custom block that has a rotation component to rotate based on the face the player it attached to (like lanterns does on vanilla) if placed using a custom item.
Repro Steps:
- Download and install the attached behavior pack.
- Join a world with the behavior enabled, enable the 'Holiday Creator Features' option.
- Give yourself a custom furnace block /give @s custom:furnace_block.
- Give yourself a custom furnace item /give @s custom:furnace_item.
- Place custom furnaces clicking on different block faces using the block.
- Do the same with the item.
Repro Rate: 3/3
Observed Results:
If placed with the block, the furnace will be facing any side based on the direction that the player clicked on, because the "minecraft:on_player_placing" triggers an event to update the block facing direction based on the block face context. If placed with the item, the furnace will always face up (we see here that "query.block_face" returned 1 instead of the properly value based on the block clicked by the player).
Expected Results:
The "minecraft:on_player_placing" triggered event should read the "query.block_face" just properly if the block was placed by the player using an item.
Notes:
Sometime ago I posted a report (ADO:493298) about rotation based on player facing not working on custom blocks placed through an item with "minecraft:block_placer". Testing player data got fixed on R19 Update 1 Beta, but not testing block face data.