The bug
You will understand better by watching the attached video.
Steps to reproduce
Join a world with commands enabled.
Run the
dialog show
command to display the following minimal setup dialog:{ "type": "minecraft:notice", "title": "", "action": { "label": "", "action": { "type": "run_command", "command": "dialog show @s {\"type\": \"minecraft:notice\", \"title\": \"\"}" } } }
Click on the button at the bottom of the screen. A confirmation screen will open.
Click on the "Yes" button.
→ ❌ The game will step forward by one tick and will not play the click sound.Click on the "Ok" button at the bottom of the screen or press the
Esc
key to close it.
→ ❌ The click sound will be played twice or, if closed through theEsc
key, will be played once despite not having clicked a button.
Observed behavior
When you click on the "Yes" button in the confirmation screen, the click sound will not be played. When you then click on the "Ok" button in the second dialog, the click sound will be played twice or once if you use the Esc
key to exit the dialog.
Expected behavior
When you click on the "Yes" button in the confirmation screen, you would hear the click sound. When you then click on the "Ok" button in the second dialog, you would hear the click sound only once or not at all if you use the Esc
key to exit the dialog.
Environment
Windows 10
Can confirm, updated the title. This does not happen when running a command that does not put the player into another dialog.