How to change title menu?

Started by Skiizy on Fri, 05/21/2021 - 03:30

Topic category: Help with MCreator software

Last seen on 02:05, 2. Jul 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to change title menu?
Fri, 05/21/2021 - 03:30

How to change title menu? I've seen some Mcreator Mods do that and Yes I did ask some of them but still no response so if you know how to change the title menu for minecraft pls reply to this topic

Last seen on 11:08, 1. Jul 2021
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hi, I know how to modify it…
Mon, 06/14/2021 - 19:34

Hi,

I know how to modify it but for the moment it's a bit of a fiddle, knowing that you have to know how to code!

- First create a new procedure
- make it "Mod Client-Side loaded".
- Save it
- Open it in code mode
- Paste (1.12.2): 

@SubscribeEvent
    public void initGui(GuiOpenEvent event) {
            if (event.getGui() instanceof GuiMainMenu) {
                event.setGui(new MainMenu());
            }
    }

or (1.14) PS: I didn't check its working :

 @SubscribeEvent
    public static void onGuiInit(GuiScreenEvent.InitGuiEvent.Pre event) {
        // GuiOpenEvent is not called for the first main menu open
        Minecraft mc = FMLClientHandler.instance().getClient();
        if(event.getGui().getClass().equals(MainMenuScreen.class)) {
            mc.displayGuiScreen(new MainMenu());
        }
    }

below :

public static void executeProcedure(java.util.HashMap<String, Object> dependencies){}
 

MainMenu being the gui created in JAVA (You can find tutorials online)

Sorry for my bad English, I am French!