When I used an Impulse Command Block with a Stone Button on the side of it, that shows to @p a dialog with “Confirmation” type, and when I escape/clicked on Yes button or clicked on No button, It executed the commands (that require permissions) like I wanted, but it doesn’t closed the dialog (I have to click on the /!\ button and click on the “Save and Quit to Title” button of the dialog interface to leave the world (and it display the text “Custom screen rejeceted“, and put me in the Multiplayer menu, but I was in Singleplayer))
Same with “Notice” type when click on the Action button or when pressing escape.
But with a command that doesn’t requires permission, I can close the interface.
Commands to reproduce the bug :
dialog show @p { "type": "minecraft:confirmation", "title": "Test", "body": { "type": "minecraft:plain_message", "contents": "You accept the rules" }, "yes": { "label": "Yes", "width": 50, "on_click": { "action": "run_command", "command": "give @s diamond" } }, "no": { "label": "No", "width": 50, "on_click": { "action": "run_command", "command": "damage @s 10" } }}
dialog show @p { "type": "minecraft:notice", "title": "Test", "body": { "type": "minecraft:plain_message", "contents": "Blablabla" }, "action": { "label": "Close", "width": 50, "on_click": { "action": "run_command", "command": "give @s stick" } }}
Environment
Windows 10
Java Edition
20w25a
Comments 9
“Future Update” refers to the next unreleased regular version. By marking that version as affected, you indicated that you were able to reproduce the issue in 25w21a — which is impossible as that version had not been released at the time, with no one other than Mojang having access to it.
Regarding a separate matter, please take a look at the comment I have left you on MC-94800.
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
If I understood this report correctly, can confirm. Testing this myself, any button that runs operator-level commands that should exit the dialog prevents the dialog from closing.