Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/14/23 in all areas

  1. This FAQ has many guides and solutions - reading this before asking for help could save you a lot of time, as it accounts for the vast majority of issues people run into that we're aware of but can't fix on our end. Supported versions and platforms We only support Forge here. We cannot help you with Fabric, Spigot, etc... We support all versions under the tiered support policy. Full support for 1.21.3, 1.21.1, 1.20.6, 1.20.4 and 1.20.1 Legacy support for all other versions Minimal support for select versions (e.g. 1.20.3 - use 1.20.4 instead) More details here. Rules Piracy (aka "cracked launchers") and cheats (aka "PvP clients", "x-ray mods", etc...) are strictly forbidden here. When you need help, please always make a new thread. Do not post in old support threads. When making a new thread, you must include a link to your log on https://pastebin.com or https://paste.ee. Instructions on where to find this and how to upload it are in this forum post. Exit/error codes Here's a list of exit codes and what they mean: Error code 0: Someone clicked "Quit game" and the game closed successfully Error code 1 and -1: The game crashed, refer to the log and/or crash report for details Error code -1073741819: A game library crashed. Update your drivers and make sure you're using the right Java version Where can I find the debug.log and crash report? Official Minecraft launcher CurseForge app MultiMC/PolyMC/Prism launcher Where can I find the installer log? Where can I find the launcher log? Most of the time you don't need to share this, so only share it when asked by a support volunteer or when you're unable to find any debug.log or crash report. Official Minecraft launcher CurseForge app What version of Java do I need? | Minecraft version | Forge version | Java version | |-------------------|---------------|--------------| | 1.20.6 or newer | 50.x or newer | 21 | | 1.18 - 1.20.4 | 38.x or newer | 17 | | 1.17.1 | 37.x | 16 | | 1.16.5 or older | 36.x or older | 8 | How do I install Java? Windows macOS Linux How do I install the Forge client to the official Minecraft Launcher? How do I install the Forge server? Where can I find the forge.jar to start my server? Forge immediately crashes on launch without any mods installed, how do I fix it? Where can I find Forge mods? https://www.curseforge.com/minecraft/search?page=1&gameFlavorsIds=1 Make sure you download the right version of a mod for your Minecraft version. My game is lagging, how can I find the culprit? How do I update my drivers?
    1 point
  2. Thanks, unfortunately, this is a client-side only mod. However, I did manage to resolve my problem using a little bit of reflection. In case anyone else ever needs it, here's my solution: @SuppressWarnings("unchecked") public static List<String> getBossBarNames(Minecraft minecraft) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException { GuiBossOverlay bossOverlay = minecraft.ingameGUI.getBossOverlay(); String nameAfter = null; // Find the name of the field as it will change with each obfuscation of forge // If you're using this, you'll want to move this lookup elsewhere and store the result for (Field s : GuiBossOverlay.class.getDeclaredFields()) { if (s.getType().getName().equals("java.util.Map")) { nameAfter = s.getName(); break; } } List<String> names = new ArrayList<String>(); if (nameAfter != null) { Field bossField = GuiBossOverlay.class.getDeclaredField(nameAfter); bossField.setAccessible(true); Map<UUID, BossInfoLerping> mapBossInfos = (Map<UUID, BossInfoLerping>) bossField.get(bossOverlay); for (BossInfoLerping bIL : mapBossInfos.values()) names.add(bIL.getName().getFormattedText()); } return names; }
    1 point
  3. im making a client mod and i just need to get the string of the vanilla current title and the subtitle EDIT: hey guys i solved it with the help of diesieben07 diesieben again thank you so much for all the help! for people from the future that want to know what i did, this for Title: String title = (String) ReflectionHelper.findField(GuiIngame.class, "displayedTitle", "field_175201_x").get(Minecraft.getMinecraft().ingameGUI); and this for subtitle: String title = (String) ReflectionHelper.findField(GuiIngame.class, "displayedSubTitle", "field_175200_y").get(Minecraft.getMinecraft().ingameGUI); also if anyone wants a super easy method to get them i just made this: public static String getCurrentTitle(){ try { return (String) ReflectionHelper.findField(GuiIngame.class, "displayedTitle", "field_175201_x").get(Minecraft.getMinecraft().ingameGUI); } catch (IllegalAccessException e) {} return ""; } public static String getCurrentSubTitle(){ try { return (String) ReflectionHelper.findField(GuiIngame.class, "displayedSubTitle", "field_175200_y").get(Minecraft.getMinecraft().ingameGUI); } catch (IllegalAccessException e) {} return ""; } it should actually be safe to copypaste, i'v put it in my reference class and i can just call it whenever..
    1 point
×
×
  • Create New...

Important Information

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