mojira.dev
MC-93647

Unknown error occurs when using a Text tag in commands

When using the Text1, Text2, Text3 and/or Text4 tag(s) on signs in commands, it seems to ignore the tag(s) and display this error message:

An unknown error occurred while attempting to perform this command

The command does get executed, though. It only ignores the tag(s).

What I expected to happen was...:
The command gets executed succesfully with the text.

What actually happened was...:
The command executes but ingoring the tag(s) and displaying the error message above.

Steps to Reproduce:
1. Write a command in a command block or in the chat that contains the Text1, Text2, Text3 and/or Text4 tag(s) on a sign and execute it.
2. Notice the error message displaying and the sign stays empty.

Linked issues

Comments 3

See MC-87143.

It only accepts proper json for each line and each line has to exist.

REally? The signs I have that used to be placed in 37c DO NOT WORK in 39b.

/setblock ~ ~2 ~ minecraft:wall_sign 2 replace {Text1:"Rule 1",Text2:"This is a test",Text3:"Mode",Text4:"============"}

This command does not work anymore and now my map is broken. 😞
Can you provide a correct command please to the broken one above to elaborate?

Plain text is not valid JSON. You'll need to either instantiate as an object (curly brackets) or an array (square brackets):

/setblock ~ ~2 ~ minecraft:wall_sign 2 replace {Text1:"{\"text\":\"Rule 1\"}",Text2:"{\"text\":\"This is a test\"}",Text3:"{\"text\":\"Mode\"}",Text4:"{\"text\":\"============\"}"}
/setblock ~ ~2 ~ minecraft:wall_sign 2 replace {Text1:"[\"Rule 1\"]",Text2:"[\"This is a test\"]",Text3:"[\"Mode\"]",Text4:"[\"============\"]"}

JochCool

(Unassigned)

Unconfirmed

Minecraft 15w49a

Retrieved