Posted February 21, 20223 yr Hi I want to program a mod where, after loading Forge, the Minecraft standard screen (which is displayed when you load e.B. a world, when you change a dimension, when you change settings, ...) is displayed with a text (which changes frequently). Edited February 21, 20223 yr by ErfinderLabyrinth
February 21, 20223 yr Author 1. How do I find out when Forge has finished loading 2. how to get the standard wallpaper (described above)
February 21, 20223 yr Author 10 minutes ago, diesieben07 said: Please elaborate on what you mean by "finished loading" exactly. Once the red background with the Mojang logo and the loading bar in the title screen where you can also select the options single player, multiplayer, ... has
February 23, 20223 yr Author After loading Forge(defined above) I want the dirt screen with 3 texts(which are constantly changing) and after a time(variable) then the Minecraft main menu is displayed
February 24, 20223 yr maybe he's angry at people and wants them to read his advertisement (or bad poetry) before allowing them into the game? or he simply forgot most important thing about making a mod - that mods are additions that other people would hopefully enjoy.
February 25, 20223 yr Author Don't care. I just want to know how to find out when Forge finished loading and how to load the Minecraft Standart main menu afterwards.
February 25, 20223 yr Author No, I don't want to create my own main menu, I just want to display a screen between the ForgeLoading Screen and the Main Menu Screen, but then the main Menu Screen should be displayed as normal
February 25, 20223 yr Author What's the problem when I create a custom main menu? Is there an exeption or are there problems loading the custom screen
February 25, 20223 yr Author I have now solved it like this: //Called when the mod is loaded new Thread(() -> { while (true) { if (!ClientModLoader.isLoading()) { try { Thread.sleep(3000); } catch (InterruptedException e) { e.printStackTrace(); } Minecraft.getInstance().setScreen(new LoadScreen()); return; } } }).start(); //Called when the main screen is to be loaded public static void finished() { java.lang.System.out.println("finishedloading"); Minecraft.getInstance().setScreen(new MainMenuScreen()); } I realize that this only works with the client and not on the server But are there any other problems besides the one mentioned above?
February 25, 20223 yr Author 1. Die drei Sekunden sind dafür da, da wenn ClientModLoader.isLoading() false ist, es trotzdem noch kurz braucht, bis man mit der Methode Minecraft#setScreen erfolgreich einen Screen anzeigen kann. 2. Der Thread fragt dauerhaft, ob Forge mit dem Laden fertig sei und wenn Forge mit dem Laden fertig ist wartet es 3 Sekunden(Begründung siehe 1.) und lädt den Load Screen. Wenn die Load-Engine fertig ist, wird die Methode finished() aufgerufen, dieser dann den Hauptbildschirm ladet.
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.