The item component "minecraft:block_placer" does not trigger the block trigger component "minecraft:on_player_placing"
Partner Rank: 3
Partner Team Reporting: Starfish Studios
Verification builds: ver. 1.16.210.05, build 5526115
Summary:
The item component "minecraft:block_placer" does not trigger the block trigger component "minecraft:on_player_placing" if the player places the custom block using the block_placer item.
Impact:
This bug prevents a custom block that has a rotation component to rotate properly if placed using an 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.
- Try to place the furnace facing any direction 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 is facing, because the "minecraft:on_player_placing" triggers the event to update the block facing direction based on the player facing direction. If placed with the item, the furnace will always face the South no matter the side the player is facing, because the "minecraft:on_player_placing" does not trigger the event to update the facing direction when the block was placed using an item.
Expected Results:
The "minecraft:on_player_placing" trigger component should still trigger if the block was placed using a block_placer item, since it has still been placed by the player. For creators who would like to test when it was placed by the player using a certain item, there would still be another way to test it using query.
Screenshots/Videos attached: No
Regression Builds: Never worked since added
Notes:
Another block trigger component, "minecraft:on_placed" is still triggered if placing a block using block_placer item, but I can't use this one to query player data.