Mojira Archive
MCPE-188501

Trigger onUseOn and Item Tags conflict

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:

Duplicate

GrostLight

2024-11-21, 03:06 PM

2024-12-02, 01:52 PM

2024-12-02, 01:52 PM

0

0

Unconfirmed

1.21.44 Hotfix

-