mojira.dev
MCPE-234184

Items that can't destroy blocks emit destroy events

Steps to reproduce the issue:

  • Create an event listener for before event of playerBreakBlock and make it log anything.

  • Try hitting a block that has minecraft:can_destroy_in_creative set to false, like a vanilla sword.

Expected result:

  • It won’t log anything since it didn’t break anything in the client.

Actual result:

  • It logged something which means it broke something in the client, which it shouldn’t be.


I hope I don’t need to provide packs here, it’s very simple to replicate.

Comments 1

Please attach an example pack that can be used to reproduce the issue.

thetheoristmc

(Unassigned)

Unconfirmed

Multiple

Windows 10-11

1.21.130

Retrieved