mojira.dev
MC-263051

Sign no longer accepting JSON text

When using this command to place a sign with player name, it doesn't display anything

 

How to reproduce:

/setblock ~ ~ ~ oak_sign{Color:"green",Text1:'{"selector":"@p","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}'} replace

 

Output:

The sign is empty.

 

Expected Behavior:

Player name should be displayed on the sign.

Linked issues

Comments 2

The sign NBT format was changed. Text1-4 no longer exist.

As mentioned already by @unknown, as of 23w12a, the NBT format of signs has changed, and this was intentional as stated in the 23w12a changelog. With this being said, we'll be resolving this ticket as invalid since no problem is present here.

The command I've provided below is of the new format and does the exact same thing as the one you've provided within the description of this report. Hopefully, you'll find this useful. 🙂

/setblock ~ ~ ~ minecraft:oak_sign{front_text:{color:"green",messages:['{"selector":"@p","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}','{"text":""}','{"text":""}','{"text":""}']}}

Deon Harwnart

(Unassigned)

Unconfirmed

(Unassigned)

1.20 Pre-release 7

Retrieved