Mojira Archive
MC-279255

SNBT text componets prevents editing lines of a sign without rewriting all other lines as compound tags at the same time

Reproduce

1. Place a sign (doesn't matter if you type something)
2.

/data modify block <pos> front_text.messages[0] set value {text: "test", bold: true}

Expected

The sign has the text "test" in bold on the first line.

Observed

Error message "Nothing changed. The specified properties already have these values".

More info

This is the only way to do the same thing, but it will override any existing text:

/data modify block -262 64 2 front_text.messages set value [{text: "test", bold: true},{text:""},{text:""},{text:""}]

A more complicated setup with a macro that has arguments for the existing text could in theory be used.

Duplicate

[Mod] NeunEinser

2025-01-08, 06:49 PM

2025-01-08, 06:57 PM

2025-01-08, 06:50 PM

0

1

Unconfirmed

(Unassigned)

25w02a

-