Is there a way to Edit a specifics word in a Tell Raw Command?
Solution 1:
You can make a JSON-formatted string italicized by adding "italic":true
to the tag. In order to have only part of the text be italic, you have to build your string from parts. You do this by putting multiple JSON tags ({ }
) into a list ([ ]
):
/tellraw @p [{"text":"Hello","italic":true},{"text":" there","italic":false}]
Note that italic
is set to false in the second one. Unless you tell the JSON to change something about the formatting, it carries over to the next part. Just like the following will have all the text in blue, rather than just the first word, even though "color"
is only set in the first tag:
/tellraw @p [{"text":"Hello","italic":true,"color":"blue"},{"text":" there","italic":false}]