mojira.dev
MC-265227

Sign missing text when replacing button

When using a command block to replace a button with a sign upon pressing the sign appears without text.

Steps to recreate:

  1. Enter the following command into an impulse command block:

    /setblock ~ ~ ~-1 oak_wall_sign{front_text:{messages:['""','"TEXT"','""','""']}}
  2. Place a button on the north face of the command block

  3. Press the button
    → ❌ A seemingly blank sign is placed

  4. Exit and rejoin the world
    → ✔ Text is now visible on the sign

Expected Behaviour:

When the button is pressed it should be replaced with a sign displaying the text defined within the command block, without having to reload the world.

Linked issues

Comments 1

The command in the description is malformatted, please correct that so it can actually be tested.

SproutGamer13

(Unassigned)

Confirmed

Platform

Normal

Block states, Commands

1.20.1, 23w35a, 1.20.6

Retrieved