Very detailed Tellraw command that i need help with [duplicate]
Okay so im making an adventure map and i have a command block that will say when someone has found mining supplies and then you will have to click where it says here to receive some of it. The thing is it just says like error on line 323 unterminated character or something. Also i cant type the command cuz i broke to block so here is a picture of the text 
Best Answer
All of the problems I noted with your code:
- You didn't escape
", causing the problem you're getting
Fix this by escaping quotes within quotes, like so:/" - You have multiple commands in one run statement.
Fix this by having multiple clicks. - You didn't separate your text elements
Fix this by having each text element in its own dictionary. - Your command in the
runCommandvalue is too long.
Here is an expanded (and corrected) JSON view of your code:
[
"",
{
"selector": "@p",
"color": "dark_purple",
"bold": true,
"italic": true
},
{
"text": " has found mining supplies! Click ",
"color": "aqua",
"bold": true,
"italic": false
},
{
"text": "here for Torches",
"color": "dark_red",
"italic": true,
"underlined": true,
"clickEvent": {
"action": "run_command",
"value": "/give @p torch 10"
},
"bold": false
},
{
"text": " and ",
"color": "aqua",
"italic": true,
"underlined": false
},
{
"text": "Here for a Pickaxe",
"color": "dark_red",
"italic": true,
"underlined": true,
"clickEvent": {
"action": "run_command",
"value": "/give @p iron_pickaxe 1 249 {display:{Name:\"Dull Pickaxe\",Lore:[\"This pickaxe is very worn out\",\"can only be used for fighting\",\"and mining weak stone\"]}}"
}
}
]
A minified Command Block friendly version of this code is this:
/tellraw @a ["",{"selector":"@p","color":"dark_purple","bold":true,"italic":true},{"text":" has found mining supplies! Click ","color":"aqua","bold":true,"italic":false},{"text":"here for Torches","color":"dark_red","italic":true,"underlined":true,"clickEvent":{"action":"run_command","value":"/give @p torch 10"},"bold":false},{"text":" and ","color":"aqua","italic":true,"underlined":false},{"text":"Here for a Pickaxe","color":"dark_red","italic":true,"underlined":true,"clickEvent":{"action":"run_command","value":"/give @p iron_pickaxe 1 249 {display:{Name:\"Dull Pickaxe\",Lore:[\"This pickaxe is very worn out\",\"can only be used for fighting\",\"and mining weak stone\"]}}"}}]
In the future, you should use generators to do this for you.
Note: The Pickaxe command may be too long to actually run. You might want to make it act as a "trigger" command that causes other command blocks to run. You can do this using the aptly-named
/triggercommand. From there, have a bunch of command blocks give the items to everyone with that scoreboard value set to 1.To do this, create a Scoreboard objective with some unique name, like
NeedsItemPack83028. Then, make it a valid Trigger by running/scoreboard players enable @a NeedsItemPack83028. Your command block would have the command set to/trigger NeedsItemPack83028. From there, you have a bunch of command blocks on a tick clock checking forNeedsItemPack83028. Apply the items to everyone who has it, and clear the flag.Now, this opens the trigger command up to abuse. You can have a second Scoreboard item (
ItemPack83028Redeemed) that can not be set by triggers. Ensure that that is false before giving items (!=).
Pictures about "Very detailed Tellraw command that i need help with [duplicate]"
![Very detailed Tellraw command that i need help with [duplicate] - Frustrated female driver in white t shirt and jeans sitting on ground near damaged car with hands on head during car travel in sunny summer day Very detailed Tellraw command that i need help with [duplicate] - Frustrated female driver in white t shirt and jeans sitting on ground near damaged car with hands on head during car travel in sunny summer day](/assets/images/very_detailed_tellraw_command_that_i_need_help_with_duplicate_1.jpeg)
![Very detailed Tellraw command that i need help with [duplicate] - Black and white of homeless man lying on floor and reading book in night shelter for homeless Very detailed Tellraw command that i need help with [duplicate] - Black and white of homeless man lying on floor and reading book in night shelter for homeless](/assets/images/very_detailed_tellraw_command_that_i_need_help_with_duplicate_2.jpeg)
![Very detailed Tellraw command that i need help with [duplicate] - Black and white of men in outerwear in shelter for homeless people in poverty Very detailed Tellraw command that i need help with [duplicate] - Black and white of men in outerwear in shelter for homeless people in poverty](/assets/images/very_detailed_tellraw_command_that_i_need_help_with_duplicate_3.jpeg)
What is the command to get a repeating command block?
ExamplesHow does Tellraw command work?
Give Multiples of Item If want to give multiple blocks at once, you need to specify an Amount in the /give command. The amount goes after the Item that you are giving. Type the command in the chat window and press the Enter key to run the command. In this example, you have specified an amount of 4 in the /give command.Minecraft Tellraw Command [1.19] Tutorial
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ahmed akacha, Gustavo Fring, Plato Terentev, Plato Terentev
