Commands are not being registered when loaded via a dialogue file in a behaviour pack. They'll only work after being inserted manually on another npc.
Steps to reproduce:
Spawn a NPC
Use /dialogue to change their dialogue
Try using buttons to run commands preselected by the dialogue file
Observed result:
The buttons and commands won't be run.
Expected result:
The button should run the commands
Spawn another NPC
Insert the same button command you put in the dialogue file
Try using the button
Observed result:
The command will work on all NPCs including the one with the file dialogue
Expected result:
The commands on all npcs should have already worked before
Video, dialogue file in the attachments, ad-ons enabled put in the .zip file in the attachments (the packs don't edit the npc's behavior or look)
Attachments
Comments 9

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response
Could you please attach video of the issue?
Also, just a reminder, to make your bug report as effective as possible, please try and include the following steps to reproduce the problem:
Steps to Reproduce:
1.
2.
3.Observed Results:
(Briefly describe what happens)Expected Results:
(Briefly describe what should happen)
If your ticket does not look like the example given here, then it's likely to be closed as incomplete.
This ticket will automatically reopen when you reply.
Quick Links:
📓 Bug Tracker Guidelines – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues) – 📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response
Could you please attach video of the issue?
Also, just a reminder, to make your bug report as effective as possible, please try and include the following steps to reproduce the problem:
Steps to Reproduce:
1.
2.
3.Observed Results:
(Briefly describe what happens)Expected Results:
(Briefly describe what should happen)
If your ticket does not look like the example given here, then it's likely to be closed as incomplete.
This ticket will automatically reopen when you reply.
Quick Links:
📓 Bug Tracker Guidelines – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues) – 📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Added the add-ons used to the attachments. They were in the development_behavior_packs and development_resource_packs folder.
Added the add-ons used to the attachments. They were in the development_behavior_packs and development_resource_packs folder.
Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
Is this still an issue in the latest version? If yes, could you please add it to the affected versions (or mention it if you are not the reporter)?
This ticket will automatically reopen when you reply.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki