mojira.dev
MC-136982

Command block data is erased upon pressing Enter in the GUI before the client receives the update packet

The bug

As described in MC-87209, the command block GUI briefly appears blank after it is opened. The Done button is disabled during this period, however, pressing the Enter key will cause all the default settings (impulse, unconditional, needs redstone, no command entered) to be saved in the command block, overwriting the previously saved data.

How to reproduce

  1. Enter a lag-inducing command into an always-active repeating command block, e.g:

    execute if entity @e[distance=100000]
  2. Close and reopen the command block GUI
    → ❌ The command input field appears blank (MC-87209)

  3. Press the Enter key before the GUI has finished loading
    → ❌ The command block is reset to an impulse, needs-redstone command block with no saved command (this may take a few seconds to occur due to the lag)

Alternatively, this can be reproduced by opening the GUI of any command block while holding the Enter key.

Linked issues

Attachments

Comments 1

@unknown, I have updated this ticket to provide a more general description of the issue; I hope this is okay with you.

Creeper Juice

(Unassigned)

Confirmed

(Unassigned)

client, lag, nbt, server

Minecraft 1.13.1, Minecraft 19w14b, 1.14.4, 19w37a, 1.16.2, ..., 1.19.1 Pre-release 6, 1.19.1 Release Candidate 2, 1.19.1, 1.19.2, 1.21 Pre-Release 4

Retrieved