mojira.dev
MC-303183

The using_item advancement trigger keeps being triggered when the player enters a dialog while using an item

I made an advancement to detect when a player use a custom item with using_item trigger, after that, I show the player a dialog, but even if I stop pressing the right click, the advancement continues to run as if I were still using the item, meaning that the using_item trigger continues to be fulfilled even though I am not actually using it with the right click; only a dialog opened.

How to reproduce:

  1. Install the attached data pack in a world.

  2. Execute the following command:

    /loot give @s loot bug:consumable
  3. Use the music disc you are given.
    -> โŒ A dialog opens, but the function to send a chat message to the player when an item is used still runs while in the dialog.

Attachments

Comments 4

We do not have enough resources to reproduce this issue.

Please attach a minimal setup data pack that can be used to reproduce this issue.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
๐Ÿ““ Bug Tracker Guidelines โ€“ ๐Ÿ’ฌ Community Support โ€“ ๐Ÿ“ง Mojang Support (Technical Issues) โ€“ ๐Ÿ“ง Microsoft Support (Account Issues)
๐Ÿ““ Project Summary โ€“ โœ๏ธ Feedback and Suggestions โ€“ ๐Ÿ“– Game Wiki

[media]

Run โ€œ/loot give @a loot bug:consumableโ€œ and just do right-click a single time with the consumable item and and you will see how the command starts to run repeatedly in a random loop. To easily exit this loop, hold down the โ€œESCโ€ key, and you will notice how the bug:use function continues to run even though you are not actually pressing the right click.

The loop runs randomly, but in the chat you will see โ€œshow dialogโ€ multiple times when it should only say it once. In this video, I have to press ESC multiple times to exit, even though I'm not pressing the right click.

I am also experiencing this bug. It goes back to 1.21.8 as well.

lullaby

(Unassigned)

Confirmed

Platform

Low

Advancements, Commands, Input, UI

1.21.10, 25w42a

Retrieved