Server Links
Minecraft chat lets players click URLs in chat or written books. The simplest way to expose external links from a menu is to open a single-page book per link - the book renders the URL as clickable text right in the player’s UI.
Why books and not chat messages
Section titled “Why books and not chat messages”A chat message with a URL is fine but easy to scroll past. A written book opens in the player’s view, looks more deliberate, and the URL is rendered as a big clickable button. For a “links” menu, books are the better UX.
openBook format
Section titled “openBook format”openBook { author: "MyTestServer" title: "&5Discord" pages: [ "Click the link below to open our invite:\n\nhttps://discord.gg/example" ]}pages is a list of strings; each string is one page. Newlines inside a string break to new lines on that page. Plain URLs become clickable automatically when Minecraft renders the book.
For a multi-page resource catalog, list more strings:
pages: [ "Page 1: Discord invite\nhttps://discord.gg/...", "Page 2: Website\nhttps://example.org", "Page 3: GitHub\nhttps://github.com/..."]Closing the menu
Section titled “Closing the menu”Each click block calls closeMenu: true after opening the book. Otherwise the menu would stay open behind the book - confusing.
Try it
Section titled “Try it”- Drop the bundle into
plugins/AbstractMenus/menus/example/. /am reload.- Type
/ame_linksin-game. - Click any tile. A book opens with a clickable URL inside.