mojira.dev
MC-252368

If a Command Block replaces itself with a block entity, the block will not have its properties applied until the world is reloaded

The bug

If you place a Command Block that instantly replace itself with a Sign with text, the Sign's text will not appear until the world is reloaded.

This started happening since 22w11a, it affects all block entities, not just signs.
How to reproduce

[media]
  1. Use this command:

    /give @p command_block[block_entity_data={id:command_block,Command:"/setblock ~ ~ ~ oak_sign{front_text:{messages:['\"\"','\"\"','\":D\"','\"\"']}} replace",auto:1b}]
  2. Place the Command Block (a Sign will replace it)
    ❌ See if the Sign has text or not. If not, reload the world and watch it again

Linked issues

Attachments

Comments 4

I can confirm this behavior.

Per MC-252793, affects all block entities rendering as default.

Per MC-257575, this can also be experienced with pistons extending when breaking a block entity right in front: the moving piston animation becomes invisible.

SoloAlguien

(Unassigned)

Confirmed

Platform

Normal

Block states, Networking

banner, command-block, sign

1.19 Pre-release 4, 1.19 Pre-release 5, 1.19 Release Candidate 2, 1.19, 22w24a, ..., 1.20.6, 1.21.1, 1.21.3, 24w46a, 1.21.4

Retrieved