Why does clickevent in minecraft not work
Solution 1:
You have two things missing or wrong.
-
"text":"Kill all people?""color":"green"
is invalid JSON - it's missing a comma -
clickEvent
uses the actionrun_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"}}