Execute command doesn't work in dialogue files
The /execute command doesn't work inside the on_open_commands, on_close_commands or as a button in dialogue json files that are opened with /dialogue. The command works everyhwere else including in a normal NPC dialogue that is configured ingame in creative mode.
Steps to reproduce:
- Open the attached world
- Click the button on the command block to open a test dialogue using /dialogue
- Click the "Execute Test" button in the dialogue
Expected results:
It should say "[NPC] open", "[NPC] button" and "[NPC] close" in chat because "/execute as @s run say ..." should be run when the dialogue opens, when the button is clicked and when the dialogue closes.
Observed results:
The execute commands in the dialogue won't trigger and it won't say "[NPC] open, "[NPC] button" or "[NPC] close" in chat.
- Works As Intended
Marcelon1- 3
- 2
- Confirmed
- 1155238
- Windows
- NPC command dialogue execute
1.20.70.22 Preview - 1.20.80.21 Preview
1.20.70.22 Preview 1.20.30.21 Preview 1.20.30.20 Preview 1.20.12 Hotfix 1.20.13 Hotfix 1.20.14 Hotfix 1.20.30.25 Preview 1.20.30.24 Preview 1.20.15 Hotfix 1.20.40.21 Preview 1.20.50.20 Preview 1.20.32 Hotfix 1.20.50.22 Preview 1.20.50.21 Preview 1.20.40 1.20.50.23 Preview 1.20.41 Hotfix 1.20.60.22 Preview 1.20.50 1.20.60.23 Preview 1.20.70.21 Preview 1.20.51 Hotfix 1.20.60 1.20.62 Hotfix 1.20.80.21 Preview
Created Issue:
Execute command doesn't work in dialogue files
The /execute command doesn't work inside the on_open_commands, on_close_commands or as a button in dialogue json files that are opened with /dialogue. The command works everyhwere else including in a normal NPC dialogue that is configured ingame in creative mode.
Steps to reproduce:
- Open the attached world
- Click the button on the command block to open a test dialogue using /dialogue
- Click the "Execute Test" button in the dialogue
Expected results:
It should say "[NPC] open", "[NPC] button" and "[NPC] close" in chat because "/execute as @s run say ..." should be run when the dialogue opens, when the button is clicked and when the dialogue closes.
Observed results:
The execute commands in the dialogue won't trigger and it won't say "[NPC] open, "[NPC] button" or "[NPC] close" in chat.
The /execute command doesn't work inside the on_open_commands, on_close_commands or as a button in dialogue json files that are opened with /dialogue. The command works everyhwere else including in a normal NPC dialogue that is configured ingame in creative mode.
Steps to reproduce:
- Open the attached world
- Click the button on the command block to open a test dialogue using /dialogue
- Click the "Execute Test" button in the dialogue
Expected results:
It should say "[NPC] open", "[NPC] button" and "[NPC] close" in chat because "/execute as @s run say ..." should be run when the dialogue opens, when the button is clicked and when the dialogue closes.
Observed results:
The execute commands in the dialogue won't trigger and it won't say "[NPC] open, "[NPC] button" or "[NPC] close" in chat.
Thank you for your report!
However, this issue has been closed as Working as Intended.
It appears the issue is with a mismatched command and minimum engine version. If you need help or have a suggestion you might like to follow a link below.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki