@inititator does not persist after the first execute subcommand
@initiator in npc dialogs only works in /execute when used in the first subcommand. In the second, third, etc. subcommand it won't work. This only applies to @initiator and not @s, @a, etc.
Example:
/execute as @initiator run say hi This command works because @initiator is used in the first subcommand of /execute.
/execute align x as @initiator run say hi This command doesn't work because @initiator isn't in the first subcommand, so the command won't run as the initiator.
Expected behaviour: @initiator should be valid in every execute subcommand
You can see this behaviour in the world attached. Try out the different buttons in the npc dialog.
2023-04-11, 07:48 PM
2023-04-25, 04:27 PM
2023-04-25, 04:19 PM
2
1
Command, Execute, NPC, Selectors
1.20.0.20 Preview, 1.19.80.24 Preview, 1.20.0.21 Preview, 1.19.73
-