mojira.dev

GrostLight

Assigned

No issues.

Reported

MCPE-188501 Trigger onUseOn and Item Tags conflict Duplicate MCPE-160248 Custom tools and weapons are duplicated after death when durability decreases Duplicate MCPE-155777 Allay gets stuck in non-full blocks while flying Fixed MCPE-155776 Error displaying new control buttons when using scaffolding. Duplicate

Comments

It was a nice animation, why was it deleted?

I support it, it is an unpleasant problem.

My post: MCPE-188501

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:

[media]

Tag «minecraft:is_axe» from custom_item.json:

[media]