To add a link to text in a tellraw
command, add a "clickEvent"
object to each of the objects in your JSON of the tellraw. Then add a "action":"open_url"
and a "value":"URL_HERE"
value to each of the "clickEvent"
objects, replacing URL_HERE
with the url you want. So in the end it will look something like this:
/tellraw @p [{"text":"TEXT","clickEvent":{"action":"open_url","value":"http://example.com/"}}]
I ran your text through a tellraw generator, and added the clickEvent
object with the values to it. Here is your command:
/tellraw @p [{"color":"white","bold":true,"text":"InFinite 16x ","clickEvent":{"action":"open_url","value":"http://p.finsgraphics.com/15pVO"}},{"bold":true,"color":"dark_gray","text":"1.9 3D ","clickEvent":{"action":"open_url","value":"http://p.finsgraphics.com/15pVO"}},{"bold":true,"color":"gold","text":"[V1] ","clickEvent":{"action":"open_url","value":"http://p.finsgraphics.com/15pVO"}},{"bold":true,"color":"white","text":"Download Link: ","clickEvent":{"action":"open_url","value":"http://p.finsgraphics.com/15pVO"}},{"bold":false,"color":"white","text":"p.finsgraphics.com/15pVO","clickEvent":{"action":"open_url","value":"http://p.finsgraphics.com/15pVO"}}]
You could use a setblock
command, using a redstone block, instead of teleporting the player right away. The block would be placed next to some redstone, which would trigger a command block to say "teleporting", and run to a line of repeaters to create delay, which is what I assume you want. At the end, have it trigger two command blocks: One to teleport the player, the other to remove the redstone block, to ensure that this would work more than once. Here's a simple schematic:
C2
C1 ^
R>>>>+>>C3
Where R
is where the redstone block would be placed, C1
is the command block that would have the command to tell the player, C2
is the command block that destroys the redstone block, C3
is the command block that actually teleports the player. >>
being a right-facing repeater, ^
being an up-facing repeater and +
being redstone dust. You could also take advantage of the Scoreboard system so the command block teleports the correct player.
Best Answer
/tellraw
uses the same JSON text component format as/title
, so you should just be able to do: