Custom-Main-Menu
Custom-Main-Menu copied to clipboard
How can I make a button that connects you directly to a certain server?
I'm making a modpack for a server, and I want to add a button to connects you to the server directly.
"connect":
{
"text" : "options.language",
"texture" : "your texture",
"posX" : 97,
"posY" : 50,
"width" : 196,
"height" : 20,
imageWidth : 100,
imageHeight : 50,
"alignment" : "left_center",
"action" :
{
"type" : "ip",
"ip" : "your ip"
}
},
"connect": { "text" : "Connect to Server", "texture" : "your texture", "posX" : 97, "posY" : 50, "width" : 196, "height" : 20, imageWidth : 100, imageHeight : 50, "alignment" : "left_center", "action" : { "type" : "connectToServer", "ip" : "your ip" } },