Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hey Guys.

 

I searched for about 4 hours for this problem and I don't found anything...

 

Now here is my Question:

    How can I edit the Main Menu (delete Buttons, edit Buttons, create new Buttons, etc.)?

 

Please be insightful for my bad English (I'm German) and I warn you I'm a beginner ;) ...

 

  • Author

Yes, but what's the method to create a Button or something else?

  • Author

Where need I to add this code?

To the init or preinit section?

Oh well, that a thema where I'm missing a tutorial. Well I think a year ago I had the same question and didn't find a tutorial or anything that would help me and so I gave there for one year up.

Developer of Primeval Forest.

Yes, but how do I add this code? With an event?

 

CoolBoy above already mentioned an event that looks like it would work.  However, based on your questions it sounds like you've never done a mod that has intercepted an event before.  So maybe you need to try out some tutorials on that first.

 

No offense but when you ask for help you need to show you know enough that you can use the help and that you're not being too lazy.  So create an event handler and try to intercept the event that CoolBoy mentioned and see what happens.  If it doesn't work, post your code that you tried here and we can help further.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

  • Author

I got a NullPointerException:

import net.minecraftforge.client.event.GuiOpenEvent;
import net.minecraftforge.event.ForgeSubscribe;

public class Core_Listener {	

@ForgeSubscribe
public void Menu(GuiOpenEvent e){
	e.gui.drawScreen(50, 10, 5f);
}
}

Do not start your methods with a capital letter; it's bad convention. You may want to create your own separate GuiScreen class that mimics the Main Menu screen. That way, you don't have to worry about deleting or screwing around with the vanilla screen, just make your own. Besides, it's a good learning experience. :)

  • Author

Now, I made my own gui. But I just found a way, how to open it form a Block or an Item. How can I now open it in the MainMenu?

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.