28

In multiple multiplayer servers I play in (e.g. Hypixel), There are books with text in them, and when you click on the text it takes you to a website.

How do I replicate this?

Hypixel Daily Reward Book with link

1
  • 4
    We need this in real life.
    – Quijibo
    Commented Jun 23, 2019 at 14:48

2 Answers 2

37

You can use clickEvent with open_url:

/give @s minecraft:written_book{pages:["[\"\",{\"text\":\"Arqade\",\"color\":\"gray\",\"underlined\":true,\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://gaming.stackexchange.com/\"}}]"],title:"foo",author:"bar"}

book

url opened

15

A good online website for creating books is minecraftjson.com, where you can create books, tellraw commands and other JSON texts for Minecraft.

If you create a book, you can simply add a new piece of text, and then set a clickEvent with open_url, then type in the url, and you're done.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .