Jump to content

Overriding a vanilla menu?


austinv11

Recommended Posts

I'm quite new to minecraft modding and I was wondering if it was possible to override a vanilla menu, more specifically, the server selection one. If it is possible, how wouldI do it?

 

I want to do this to add new functionality to that screen. Any response is appreciated! :)

Link to comment
Share on other sites

It's possible, but difficult for a few reasons. What are you wanting to add? Can it be added in-game or does it NEED to be in the main menu?

 

Generally it's frowned upon to alter the existing menus as it:

1) Requires a coremod. (Which are last resort.)

2) Only keeps the last mod to change it's changes.

3) Can just be plain annoying depending on what you're changing.

 

But if you're only adding functionality and not removing any and you're not too intrusive about it, people might be willing to help.

Link to comment
Share on other sites

You can use the GuiOpenEvent, in which you get a GuiScreen object. You can use that object to check if it's a instance of the vanilla menu (GuiMultiplayer in your case) and then set the GuiScreen object to your new class extending the vanilla menu, so it still looks like the main menu instead of remaking all of it.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.