-
Bug
-
Resolution: Unresolved
-
None
-
1.21.30.22 Preview, 1.21.30.21 Preview, 1.21.2 Hotfix
-
None
-
Confirmed
-
Windows
-
1348820
The bug
The /dialogue command opens a user interface on a player, but it requires you to use an entity with the npc component. If the entity found was spawned or given that component just a few ticks ago however, the command will do nothing. It will say it succeeded, but it didn't.
How to reproduce
1. Download and open the attached world
2. Press the button on the left command block chain
3. Press the button on the right command block chain
Expected behavior
Both chains should display an NPC interface. They have the exact same commands.
Observed behavior
Only the right chain works, since it delayed execution of the command by a couple ticks.
Notes
Since commands cannot be delayed in functions in bedrock edition, there is no adequate workaround. It's very important that our systems can display dialogue reliably when the player requests it, without possibility of failing.