0

Right now im working on a map in Minecraft called "Fruit Parkour Course", and Right now im in a sticky situation. In the Story of the map, I Decided to use TellRaw command in order to make the characters Dialog.

For an Example : /tellraw @a {text:"[Villager1] Hai"}

Now im curius to see, Is there a way to make a Specific Word to edit. Like, the villager say "Hello There !", and then i wanted to make the "Hello" word to be Italic. If somebody can help me about this, please tell me how to do it .

  • Are you just asking how to make a word italic in tellraw? – MrLemon Nov 29 '15 at 10:05
  • I suggest you have a look at this extensive explanation of JSON in Minecraft by @Skylinerw on the Minecraft forums, or play around with a JSON generator like this one to learn about the JSON stuff. – MrLemon Nov 29 '15 at 10:13
  • Noo, what i mean is I only wanted to change one of the word of that Sentences ! – RotzApple Nov 29 '15 at 10:21
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}]
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.