mojira.dev
MCPE-105522

Changes to Advanced NPC Settings are not saved sometimes

When editing an NPC's commands in Creative mode using the Advanced NPC Settings dialog box, you return to the Non Player Character dialog box. The changes you've made have not been saved at this time. It's then possible to use the Edit Dialog button to display (and edit) the NPC's speech bubble text. After you close that dialog box, you return to the Non Player Character dialog box, which you then close to cause the command changes to be saved.

However, the dialog box in which you can edit the speech bubble text is the same one displayed to Survival mode players who interact with the NPC. It contains any buttons you've defined in Advanced NPC Settings, and these buttons are enabled. The normal function of these buttons is to execute the NPC commands and then close the dialog. But if you do this after you've just been editing the NPC commands, this will bypass returning you to the Non Player Character dialog, which means the changes you made to the commands aren't saved.

Steps to reproduce:

  1. Create or open a multiplayer world. (flat is fine).

  2. In Creative mode, summon an NPC.

  3. Right-click the NPC to open the Non Player Character dialog box.

  4. Click the Advanced Settings button to open the Advanced NPC Settings dialog box.

  5. Click the Add Command button.

  6. Enter the command say Button 1 in the Command text box.

  7. Set the Button Mode toggle on, then set the button's caption to Button 1.

  8. Close the Advanced NPC Settings dialog box. This returns you to the Non Player Character dialog box.

  9. Click the Edit Dialog button to open the NPC interface.

  10. Click Button 1.
    (Note: Although the changes you made in Advanced NPC Settings have not been fully saved, the NPC interface reflects any added or removed buttons that are pending.)
    Expected Result: "[NPC] Button 1" is displayed in the chat.
    Actual Result: Nothing is displayed in the chat, because the newly added command button has not yet been fully saved.

  11. Right-click the NPC to open the Non Player Character dialog box again.

  12. Close the dialog box.

  13. Right-click the NPC one more time, then click the Edit Dialog button to open the NPC interface.

  14. Click Button 1.
    Expected Result: "[NPC] Button 1" is displayed in the chat.
    Actual Result: It works as expected because you clicked the X close button on the Non Player Character dialog box, which finally saved the advanced NPC settings changes you made.

Additional Information
There are two possible ways this could have been intended to work: Either the changes you make in the Advanced NPC Settings dialog box should be saved before the NPC interface is displayed (so that the changes won't be lost when it bypasses returning to the Non Player Character dialog box because you pressed a command button), or the command buttons on that NPC interface were meant not to close it when the player is in Creative mode or has been editing the Advanced NPC Settings. Of these two possibilities, the first is highly preferable to players because it allows us to make changes and test them immediately in Creative mode. (Otherwise, we'll have to switch to Survival to test command changes.)


Original description:

I have been using the Minecraft bedrock NPCs to set up my realm. Whenever I enter commands into them, they don't work and end up not saving.

Linked issues

Comments 8

*Workaround* by [~Auldrick]:

To ensure that changes you make to commands and/or buttons in the Advanced NPC Settings dialog box are saved, make sure to always exit the NPC UI panels after you make the changes. You can then immediately reopen the Non Player Character UI and click Edit Dialog to test your changes.

*Workaround* by [~Auldrick]:

To ensure that changes you make to commands and/or buttons in the Advanced NPC Settings dialog box are saved, make sure to always exit the NPC UI panels after you make the changes. You can then immediately reopen the Non Player Character UI and click Edit Dialog to test your changes.

I have moved this report from the REALMS project to the MCPE project because it is not specific to Realms. It can also be reproduced in a Windows 10 local Multiplayer game.

I have moved this report from the REALMS project to the MCPE project because it is not specific to Realms. It can also be reproduced in a Windows 10 local Multiplayer game.

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 so, please make sure the ticket description contains the following information:

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:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

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 so, please make sure the ticket description contains the following information:

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:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

This appears to have been fixed, though I don't know when. I was not able to reproduce the problem in 1.17.30. Updates to the NPC dialog were saved as entered.

This appears to have been fixed, though I don't know when. I was not able to reproduce the problem in 1.17.30. Updates to the NPC dialog were saved as entered.

Evan Hecht

(Unassigned)

457390

Confirmed

Windows

1.16.40 Hotfix

Retrieved