mojira.dev
MC-278828

/tellraw command color reset no longer exists

I was working on a datapack that has multiple tellraw sections, and noticed the color reset isn't working as it should

/tellraw @s [{"text":"-1 ","color": "red"},{"text":"secondary test","color": "reset"}] 

what this should do is color the first part red, but remove the specified color from the second part, leaving it whatever color it is normally, whether it's a letter or custom glyph, but at the moment, the game is saying the term "reset" doesn't exist, and if I leave it colorless, the second line takes the color from the first line.

Attachments

Comments 1

Not a bug, but rather JSON structure...? Text will intend to inherit the previous formatting because there has been no new formatting specified. Using a blank string ( "", ) at the start implies that every string's formatting will need to be specified on their own, breaking this inheritance.

You can use /tellraw @s ["",{"text":"-1 ","color":"red"},{"text":"secondary test"}] to achieve your intended effect.

TheNope

(Unassigned)

Unconfirmed

(Unassigned)

1.21.4

Retrieved