Mojira Archive
MCPE-187726

beforeOnPlayerPlace custom component doesn't fire if "replace_block_item" is true

The new stable release brings the "replace_block_item" option to "minecraft:block_placer" but it still doens't fix the following bug:
-When "replace_block_item" is set to true and the block has "beforeOnPlayerPlace" as a custom component event, it doesn't fire the event.

Steps to Reproduce:
Install the addon attached in this report. The addon has 2 blocks and 2 items, one item ("working_double_block") has "replace_block_item" set to true and the other one ("not_working_double_block") has "replace_block_item" set to false. Both blocks also have the same custom component that has "beforeOnPlayerPlace".

Observed Results:
When the "not_working_double_block" custom block is placed, the "beforeOnPlayerPlace" event is not fired unlike the other custom block "working_double_block".

Expected Results:
Both custom blocks should fire the "beforeOnPlayerPlace" event.