-
Bug
-
Resolution: Unresolved
-
None
-
1.21.44 Hotfix
-
None
-
Unconfirmed
-
Multiple
I noticed that the onUseOn trigger (class ItemComponentUseOnEvent) conflicts with tags representing «minecraft:is_axe», «minecraft:is_hoe» and «minecraft:is_shovel».
If a Custom Item contains, for example, the «minecraft:is_axe» tag, then the onUseOn event will be ignored when interacting with some blocks.
Steps to Reproduce:
1. Create any Custom Item with tag «minecraft:is_axe»
2. Add any Custom Component with trigger onUseOn (class ItemComponentUseOnEvent) or initialize an world event (world.afterEvents.itemUseOn)
3. Add «world.sendMessage('Hello, World!')»
Observed Results:
The game ignores the event when trying to interact with logs and stems using Custom Item with tag «minecraft:is_axe».
Expected Results:
We can see World Message «Hello, World!»
Custom Component Trigger example:
Tag «minecraft:is_axe» from custom_item.json: