Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-187726

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.60.21 Preview, 1.21.50.30 Preview, 1.21.50.26 Preview, 1.21.41 Hotfix, 1.21.43 Hotfix, 1.21.50.29 Preview, 1.21.44 Hotfix
    • Unconfirmed
    • Windows

      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.

            Aguiles Aguilesgamer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: