After the latest 1.18.10 update, for some reason NPC buttons have become broken in a way that's affecting gameplay when utilizing the NPC interact screen.
This particularly happens whenever you trigger the `/dialogue` command using the NPC button while the NPC screen is opened.
Steps to reproduce:
Create a dialogue file that includes a button that will trigger a `/dialogue open` command redirecting to a different or the same dialogue
Apply the dialogue file to an NPC entity nearby
Open and run the dialogue to the NPC
Press the specified button that's assigned to run the `/dialogue` command
Will open that dialogue screen, but buttons on that will no longer work and become unresponsive
Additional information:
This issue seems to only occur in Creative mode. Right now what I do is to temporarily turn players into Survival first then return them back to Creative mode should needed.
Being able to click on students buttons while in Creative is quite vital as NPC Interact Screens can be modified to our liking and always display a pseudo-student screen indefinitely.
Linked issues
is duplicated by 3
Attachments
Comments 10
After some tests I can confirm that. Apparently the screen content is updated but some screen values aren't, so the buttons tries to fire an action that aren't avaliable anymore.
This also affect things with UI editing, like dynamic-sized components, for example using a "fill" sized element to match a parent element size. The content is updated, but the "fill" value for the updated screen are still from the old screen.
As a workaround, it's possible to make the screen close before opening another (for example using tags on buttons and then the command to open another on the on_exit action based on the tag). This can prevent both UI editing values not being updated and unresponsive buttons during gameplay
Here, I used a custom screen on the video to show an example of the variables/values not being updated when triggering a new screen without closing the previous
[media]
Resolving temporarily as Awaiting Response. Could you please add an example world to this report? This ticket will reopen automatically when you reply.
Hello, was requested, I made a world showcasing the unintendeed behavior / bug, there's some NPCs explaining the behavior and other NPCs to test the bug by yourself. I Also included a example of a temporally manual workaround for that (with downsides) while this bug isn't fixed:
[media]
I'll create another world to show a better explanation of the variables/screen values not being updated, using a resource pack to help to visualise it (like on the video example). When done I'll publish it here too.
Here's the other world with a visual example that I talked about. This bug is caused due the screen values/variables not being updated when changing/opening new dialogues. In this case, you can see the bug happening even in survival:
[media]
Just a reminder that the custom resource pack just help to visualize better the values not being updated, this unintendeed behavior also happens on the vanilla game without any packs, as showcased on the first world/example and the bug description.
Also, I used only NPCs Entities to showcase the bug on the worlds, but using dialogue files of behavior packs also causes the same issues with the exact same unintendeed behavior
Added additional information