2

/tellraw command broken?

Smile17 8/14/25 8:00 am
549
8/15/2025 8:25 am
Hi, I’m on Minecraft Java 1.21.8 and I noticed that my /tellraw command with clickEventrun_command doesn’t seem to work anymore.


Tis is my command, I work on an Melon Tycoon game:


/tellraw @p [
{"text":"Do you want to upgrade your Melon?"},
{"text":"\n"},
{"text":"[ Yes ]","color":"dark_green","clickEvent":{"action":"run_command","value":"/say hi"}},
{"text":" / "},
{"text":"[ No ]","color":"dark_red","clickEvent":{"action":"run_command","value":"/say No changes were made."}}
]


When I click the text, nothing happens — no command is run.

Is it possible that clickEvent with run_command is broken or changed in 1.21.8?

Smile :)
Posted by
Smile17
Level 26 : Expert Crafter
11

  Have something to say?

JoinSign in

4

CommandYaw
08/14/2025 8:37 am
He/Him • Level 40 : Master Engineer
history
It has changed indeed:
- clickEvent has been renamed to click_event
- value has been renamed to command (when using run_command)

So this should be what you need:/tellraw @p [
{"text":"Do you want to upgrade your Melon?"},
{"text":"\n"},
{"text":"[ Yes ]","color":"dark_green","click_event":{"action":"run_command","command":"/say hi"}},
{"text":" / "},
{"text":"[ No ]","color":"dark_red","click_event":{"action":"run_command","command":"/say No changes were made."}}
]
4
Smile17
08/14/2025 4:06 pm
He/Him • Level 26 : Expert Crafter
Oh, i think it still doesnt work I tested it and i clicked the yes and no but nothing happens

/tellraw @p [
{"text":"Do you want to upgrade your Melon?"},
{"text":"\n"},
{"text":"[ Yes ]","color":"dark_green","clickEvent":{"action":"run_command","value":"/say hi"}},
{"text":" / "},
{"text":"[ No ]","color":"dark_red","clickEvent":{"action":"run_command","value":"/say No changes were made."}}
]


the chatgpt said i should use this code
/tellraw @p [
{"text":"Do you want to upgrade your Melon?"},
{"text":"\n"},
{"text":"[ Yes ]","color":"dark_green","clickEvent":{"action":"run_command","value":"/say hi"}},
{"text":" / "},
{"text":"[ No ]","color":"dark_red","clickEvent":{"action":"run_command","value":"/say No changes were made."}}
]


but https://www.minecraftjson.com/ said i should use this
/tellraw @p ["",{text:"Do you want to upgrade your Melon to increase your Melons per Click?"},{text:"\n"},{text:"[ Yes ]",color:"dark_green",click_event:{action:"run_command",command:"say hi"}},{text:" / "},{text:"[ No ]",bold:true,color:"dark_red",click_event:{action:"run_command",command:"say No changes were made."}}]

both didnt work
1
CommandYaw
08/15/2025 8:25 am
He/Him • Level 40 : Master Engineer
In the first block, you still have got the old "clickEvent" instead of "click_event". The ChatGPT variant still has got the issues I mentioned previously.
1
Smile17
08/14/2025 4:14 pm
He/Him • Level 26 : Expert Crafter
both of them dont work
1

Welcome