MCreator issue tracker has been migrated to GitHub.
Existing tickets have been migrated to GitHub. Please open new tickets on the GitHub tracker instead. If you do not have a GitHub account, all feature requests and bug reports from forums are still considered and checked by the maintainers.
You need to use the event damage item to damage the item. Otherwise, it will just remain undamaged. So this works as designed. You can attach this event to On player hits entity with item only right now.
I will keep this issue open so we add the onBlockDestroyed event to the item event list so one can use damage item event result when the item is used to destroy a block.