Mojira Archive
MCPE-185120

/dialogue fails to open if the NPC was recently spawned

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.

Unresolved

[Mod] tryashtar

2024-08-09, 07:05 PM

2025-01-03, 03:54 PM

1

2

Confirmed

1348820

1.21.30.22 Preview, 1.21.30.21 Preview, 1.21.2 Hotfix

-