player-events icon indicating copy to clipboard operation
player-events copied to clipboard

[QUESTION] clickable text with a link

Open Dizover opened this issue 2 years ago • 1 comments

How to create a clickable text with a link, I have already tried to do that but I regret it does not work, can you please help me? "join": { "actions": [ "/tellraw ${player} [{\"text\":\"§nLink1\",\"color\":\"green\",\"clickEvent\":{\"action\":\"open_url\",\"value\":\"http:\/\/google.com"}}]" ]

Dizover avatar May 19 '22 14:05 Dizover

Sorry for not answering before, I forgot to do it at the time.

2.3.0 was just released, and now you can use Simplified Text Format to format your messages. In this case, your action would just be <underline><green><url:'https://google.com'>Link1</url></green></underline>. Hope this helps!

IotaBread avatar Jun 10 '22 02:06 IotaBread