-
Bug
-
Resolution: Fixed
-
None
-
1.16.40 Hotfix
-
None
-
Confirmed
-
Windows
-
457390
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:
- Create or open a multiplayer world. (flat is fine).
- In Creative mode, summon an NPC.
- Right-click the NPC to open the Non Player Character dialog box.
- Click the Advanced Settings button to open the Advanced NPC Settings dialog box.
- Click the Add Command button.
- Enter the command say Button 1 in the Command text box.
- Set the Button Mode toggle on, then set the button's caption to Button 1.
- Close the Advanced NPC Settings dialog box. This returns you to the Non Player Character dialog box.
- Click the Edit Dialog button to open the NPC interface.
- 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. - Right-click the NPC to open the Non Player Character dialog box again.
- Close the dialog box.
- Right-click the NPC one more time, then click the Edit Dialog button to open the NPC interface.
- 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.
- is duplicated by
-
MCPE-98012 NPC changes made in advanced settings won't save when you exit by pressing escape
- Resolved