URGENT! Need help with Citizens 2 Mod
I want people to be able to click on the NPC, and it redirects them to our website, but I am not sure how I am supposed to make it work.
/npc cmd add -l tellraw %player% '{"text":"\nel[ CLICK HERE TO VOTE]\n","clickEvent":{"action":"open_url","value":"https://google.com"}}'
I used the following command from ChatGPT, but it doesn't make it click.
It's quite urgent, your help would be greatly appreciated
/npc cmd add -l tellraw %player% '{"text":"\nel[ CLICK HERE TO VOTE]\n","clickEvent":{"action":"open_url","value":"https://google.com"}}'
I used the following command from ChatGPT, but it doesn't make it click.
It's quite urgent, your help would be greatly appreciated
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
In recent versions it's click_event and not clickEvent. There may be more mistakes, you can check the syntax with the wiki, which will be way more reliable than an AI.
https://minecraft.wiki/w/Text_component_format