mojira.dev
MCPE-140926

/dialogue open @s @s <scene>, will not run any commands if not opped

Steps to reproduce
Create player.json file with minecraft:npc and minecraft:interact, with a child of swing as components.
Create a dialogue with a command to be run on press.
Create a command block to run execute @p ~ ~ ~ /dialogue open @s @s <scene>
Remove Operator Status.
Power the command block
Press a button in the NPC Dialogue.that run a command.

Expected Behavior:
The command runs

Observed Behavior:
The command does not run.

For Operator GUIs it works fine but player ones you must use a npc.

Linked issues

Attachments

Comments 4

Please attach an sample pack, or better, a world save, that reproduces this issue.

I added a sample world for testing. Just remove op for the experiment and use op for the control group. The interact thing isn’t required it just fixes the issue of players completely acting like npcs

You do have to wait a about 10 seconds for the op to be removed since the command will execute immediately after the op is removed and will not run after a few seconds.

This has affected the use of my player based gui for my how-to-play addon that is designed to run off the player instead of using an extra entity this needs to be resolved it's not that complicated to adjust to allow it to work without OP perms

mrpatches123

(Unassigned)

699702

Confirmed

Multiple

all

1.17.11 Hotfix, 1.17.32, 1.17.41 Hotfix, 1.18.12 Hotfix

Retrieved