Mojira Archive
MCPE-151746

on_hit_block doesn't work in survival mode

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.

Cannot Reproduce

Zijian Zhang

2022-01-16, 01:24 PM

2022-08-19, 12:40 PM

2022-08-19, 12:40 PM

0

1

Unconfirmed

1.18.2 Hotfix, 1.18.12 Hotfix

-