1

How to make a open link click event?

RainOfPain125's Avatar RainOfPain1252/5/18 12:23 am
1 emeralds 304 5
2/8/2018 9:26 pm
RainOfPain125's Avatar RainOfPain125
I'm trying to make a click event for my servers auto announcements - but I can't seem to get it to work...
Posted by RainOfPain125's Avatar
RainOfPain125
Level 3 : Apprentice Network
0

Create an account or sign in to comment.

5

1
02/05/2018 12:52 pm
Level 70 : Legendary Sailor
Rhines
Rhines's Avatar
1
02/07/2018 10:30 pm
Level 3 : Apprentice Network
RainOfPain125
RainOfPain125's Avatar
22:29:10 INFO]: {"text": "&6&l[Announcer]&r &6["",{"text":"Click Here","clickEvent":{"action":"open_url","value":"sites.google.com/view/royalarmsservers/minecraft/donate"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":{"text":"Click Me :)"}]}}}]"to see the perks of donating to the server!&r}
[22:29:10 INFO]: com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 column 34 path $.text
1
02/07/2018 11:06 pm
Level 70 : Legendary Sailor
Rhines
Rhines's Avatar
Well, I dunno what's wrong with your thing, because all the open click events I've done with that json creator work fine.
Are you trying to enter this through console?
1
02/08/2018 9:26 pm
Level 3 : Apprentice Network
RainOfPain125
RainOfPain125's Avatar
No, this was used for a plugin - not put directly into console
1
02/05/2018 1:06 amhistory
Level 57 : Grandmaster Engineer
ShelLuser
ShelLuser's Avatar
Depends a bit on how you want to set this up. It is easily doable with vanilla Minecraft through usage of the so called Raw JSON text format. For example:

/tellraw @p {"text":"Visit the Planet Minecraft forums!","clickEvent":{"action":"open_url","value":"http://www.planetminecraft.com/forums/"}}

See also these data values.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome