Hi, I’m on Minecraft Java 1.21.8 and I noticed that my
Tis is my command, I work on an Melon Tycoon game:
When I click the text, nothing happens — no command is run.
Is it possible that
Smile :)
/tellraw command with clickEvent → run_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 :)
4
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:
- 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."}}
]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
/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
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.
both of them dont work
