ErfinderLabyrinth Posted February 21, 2022 Posted February 21, 2022 (edited) 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, 2022 by ErfinderLabyrinth Quote
ErfinderLabyrinth Posted February 21, 2022 Author Posted February 21, 2022 1. How do I find out when Forge has finished loading 2. how to get the standard wallpaper (described above) Quote
ErfinderLabyrinth Posted February 21, 2022 Author Posted February 21, 2022 On 2/21/2022 at 6:21 PM, diesieben07 said: Please elaborate on what you mean by "finished loading" exactly. Expand 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 Quote
ErfinderLabyrinth Posted February 22, 2022 Author Posted February 22, 2022 I don't want to reveal it yet (-; Quote
ErfinderLabyrinth Posted February 23, 2022 Author Posted February 23, 2022 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 Quote
MFMods Posted February 24, 2022 Posted February 24, 2022 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. Quote
ErfinderLabyrinth Posted February 24, 2022 Author Posted February 24, 2022 No, this is only for the loading engine of the mod(s) Quote
ErfinderLabyrinth Posted February 25, 2022 Author Posted February 25, 2022 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. Quote
ErfinderLabyrinth Posted February 25, 2022 Author Posted February 25, 2022 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 Quote
ErfinderLabyrinth Posted February 25, 2022 Author Posted February 25, 2022 What's the problem when I create a custom main menu? Is there an exeption or are there problems loading the custom screen Quote
ErfinderLabyrinth Posted February 25, 2022 Author Posted February 25, 2022 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? Quote
ErfinderLabyrinth Posted February 25, 2022 Author Posted February 25, 2022 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. Quote
ErfinderLabyrinth Posted February 25, 2022 Author Posted February 25, 2022 Why shouldn't that bring except to break? Quote
Recommended Posts
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.