0

This question already has an answer here:

I know this is right but, it says:

Undetermined object at Column 1 Line 217

Here's the command:

/tellraw @p ["",{"text":"[","color":"white"},{"text":"Gateman","color":"dark_aqua"},{"text":"]","color":"white"},{"text":" You need $5 to enter the town.","color":"dark_aqua"},{"text":" >>>","color":"white","clickEvent":{"action":"run_command","value":"/setblock 3.5 100 -16.5 minecraft:redstone_block}]

marked as duplicate by Schism, galacticninja, greg-449, Joachim, Virusbomb Jul 11 at 14:20

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • If this is right, can you run it on it's own? – Frank Aug 15 '16 at 19:13
  • I have absouletely no idea what is wrong. I'm pretty new to command blocks but according to a guide I looked up, it's right. – BunkPlaysGames Aug 15 '16 at 19:59
  • It's running on a testfor thing and I know that it's activating. – BunkPlaysGames Aug 15 '16 at 19:59
  • Please stop adding answers into your questions. – Frank Aug 15 '16 at 22:48
  • When was I answering? – BunkPlaysGames Aug 16 '16 at 2:29
1

The problem comes from here:

        "clickEvent":{
            "action":"run_command",
            "value":"/setblock 3.5 100 -16.5 minecraft:redstone_block

    }
]

The value string, starting at "/setblock...", has not been ended with another quotation mark, ", and the clickEvent compound tag has not been ended with a closing curly bracket, }.

This is the fixed command:

 /tellraw @p ["",{"text":"[","color":"white"},{"text":"Gateman","color":"dark_aqua"},{"text":"]","color":"white"},{"text":" You need $5 to enter the town.","color":"dark_aqua"},{"text":" >>>","color":"white","clickEvent":{"action":"run_command","value":"/setblock 3.5 100 -16.5 minecraft:redstone_block"}}]
  • Thank you! I used a generator to figure it out it, but that helps! :D – BunkPlaysGames Aug 15 '16 at 22:39

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