1

I have a tellraw command in Minecraft and all of the text appears but upon clicking the text I want all players to die. But instead of all players dying nothing happens. Here is my command:

tellraw @a {"text":"Kill all people?""color":"green","clickEvent":{CommandValue":"/kill @a"}}`

1 Answer 1

3

You have two things missing or wrong.

  • "text":"Kill all people?""color":"green" is invalid JSON - it's missing a comma
  • clickEvent uses the action run_command to execute commands

Taking both into account this will work assuming you're using the latest version of Minecraft:

/tellraw @a {"text":"Kill all people?","color":"green","clickEvent":{"action":"run_command","value":"/kill @a"}}

3
  • I don't think the slash before "kill" is necessary. Commented Jul 20, 2017 at 6:23
  • @Fabian maybe not, but it works with it and I'm used to it :)
    – dly
    Commented Jul 20, 2017 at 8:28
  • Thanks, my brother was just teaching me and he forgot how to do some of the stuff. I tried run_command but i didn't have that comma.
    – user192362
    Commented Jul 20, 2017 at 13:26

You must log in to answer this question.