mojira.dev
MC-236663

Command blocks do not display command in their UI

You can enter a command in a command block, but if you click done and reopen the GUI, it does not show the command. The command is still stored in the block though, and it does get executed when the command block is triggered.

Steps to reproduce

  1. /give @s minecraft:command_block

  2. Place it down and enter a command such as say hello

  3. Click done and reopen the command block. The command text box is empty.

  4. Use /data get block <x> <y> <z> Command and notice that the command is there.

  5. Trigger the command block (e.g. put down a button). The command does get executed.

Attachments

Comments 11

/execute at CitrusThings run fill ~-10 ~-10 ~-10 ~10 ~10 ~10 air replace stone

/execute at CitrusThings run fill ~-10 ~-10 ~-10 ~10 ~10 ~10 air replace dirt

/execute at CitrusThings run fill ~-10 ~-10 ~-10 ~10 ~10 ~10 air replace grassblock (psuedocode)

I had these 3 commands going on a repeat/always active block, and the dirt/grass ones stopped working randomly for one and after I checked it and discovered it blanked out for the other

The bug is that you can't even know what is inside the command block, SO YOU CAN'T EDIT THE COMMAND BLOCK

Note that other parts of the command block UI are also not loaded, such as the Always Active/Needs Redstone toggle.

1 more comments

[...] but if the player click "Done", the command inside now (now cleared because the new empty GUI) is saved, replaces the original command.

This is also the behaviour I experienced.

can confirm for 21w38a.

can confirm for 21w39a.

Oh, I was making escape maps and I thought it was a bug too! Thank you for reporting this for every player!!

JochCool

boq

Confirmed

Very Important

UI

21w37a, 21w38a, 21w39a

21w40a

Retrieved