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

on_hit_block doesn't work in survival mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 1.18.2 Hotfix, 1.18.12 Hotfix
    • None
    • Survival
    • Unconfirmed
    • Windows

      In my addon, I created an item with component below:

      "minecraft:weapon": {
          "on_hurt_entity": {
              "event": "dmg"
          },
          "on_hit_block": {
              "event": "block"
          }
      } 

      When under creative mode and click left mouse button to hit and destroy a block, event "block" can be triggered. However, under survival mode, the same action will not trigger this event.


      Tested in v1.18.12, the issue still exists.

            Futrime Zijian Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: