The "run_command" action on text with the click_event text component fails if the command is /say or /tell, which are fairly harmless commands. Meanwhile the "suggest_command" still works and has nearly the same format. An error is produced in the output log, but most player will have no feedback as to why the clicked text does nothing.
Steps to reproduce:
1. Run commandΒ
/tellraw @p [{text:"click me to say hi",click_event:{action:'run_command',command:'/say hi'}}]
2. Click the text in your chat. Nothing happens.
3. Replace the action with "suggest_command", proving that suggest_command still works.Β
/tellraw @p [{text:"click me to say hi",click_event:{action:'suggest_command',command:'/say hi'}}]
Linked issues
Attachments
Comments 3
Ah. Yeah I guess I used the exact wrong test case when playing with the new format. Whoops.
I'll update the report title and description. Probably not a bug anymore, though. It would be nice if the error message was shown in chat, though. I didn't realize what was happening until I checked the output log.
Thank you for your report!
We're tracking this issue in MC-264152, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
π Bug Tracker Guidelines β π¬ Community Support β π§ Mojang Support (Technical Issues) β π§ Microsoft Support (Account Issues)
π Project Summary β βοΈ Feedback and Suggestions β π Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
Sending chat messages via run_command is not allowed since 1.19.1:
From the 1.19.1 changelog:
Duplicate of MC-264152