Jump to content

Search the Community

Showing results for tags '1.8.9'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Minecraft Forge
    • Releases
    • Support & Bug Reports
    • Suggestions
    • General Discussion
  • Mod Developer Central
    • Modder Support
    • User Submitted Tutorials
  • Non-Forge
    • Site News (non-forge)
    • Minecraft General
    • Off-topic
  • Forge Mods
    • Mods

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


XMPP/GTalk


Gender


URL


Location


ICQ


AIM


Yahoo IM


MSN Messenger


Personal Text

Found 9 results

  1. Hi all, I am a beginner when it comes to Minecraft modding and ChatGPT has run out its course in ways of being helpful. The mod itself runs fine within the IntelliJ IDE environment and performs exactly how I'd like it to. However, after compiling all necessary elements of my mod using gradlew build, and gradlew shadowJar and putting it into the mods folder (both with and without other mods present) it simply doesn't show up in my mods list and is therefore rendered useless. The mods functionality is pretty basic; fetch embeds from a certain Discord channel sent by a certain user and relay them into the client-sided Minecraft chat with slight modifications to the formatting. ExampleMod.java: https://hastebin.com/share/yizizojodi.java build.gradle: https://hastebin.com/share/yowukonoju.java Any help is appreciated - thank you! /S
  2. public class HUD { public Minecraft mc = Minecraft.getMinecraft(); public static class ModuleComparator implements Comparator<Module>{ @Override public int compare(Module o1, Module o2) { if (Minecraft.getMinecraft().fontRendererObj.getStringWidth(o1.name) > Minecraft.getMinecraft().fontRendererObj.getStringWidth(o2.name)){ return -1; } if (Minecraft.getMinecraft().fontRendererObj.getStringWidth(o1.name) < Minecraft.getMinecraft().fontRendererObj.getStringWidth(o2.name)){ return 1; } return 0; } } public void draw(){ ScaledResolution sr = new ScaledResolution(mc); FontRenderer fr = mc.fontRendererObj; Collections.sort(Client.modules, new ModuleComparator()); GlStateManager.pushMatrix(); GlStateManager.translate(4,4,0); GlStateManager.scale(1.5,1.5,1); GlStateManager.translate(-4, -4, 0); fr.drawString("Skyline", 10, 10, -1); GlStateManager.popMatrix(); int count = 0; for (Module m : Client.modules){ if (!m.toggled || m.name.equals("TabGUI")) continue; int offset = count* (fr.FONT_HEIGHT + 6); GL11.glTranslated(0.0f, 0.0f, -1.0f); Gui.drawRect(sr.getScaledWidth() - fr.getStringWidth(m.name) - 10, offset, sr.getScaledWidth() - fr.getStringWidth(m.name) - 8, 6 + fr.FONT_HEIGHT + offset, -1); Gui.drawRect(sr.getScaledWidth() - fr.getStringWidth(m.name) - 8, offset, sr.getScaledWidth(), 6 + fr.FONT_HEIGHT + offset, 0x90000000); fr.drawString(m.name, sr.getScaledWidth() - fr.getStringWidth(m.name) - 4, offset + 4, -1); count++; } Client.onEvent(new EventRenderGUI()); } } I have just recently stumbled upon this Problem, where the HudRenderer renders the wrong section of the textures and therefore completely destroys the Minecraft Armour and Hunger Bar. I am currently thinking if it is an issue with the DrawRect changing something it shouldn't. But I couldn't find anything about it. (To keep things Clean, the function is Called from another file) public class RenderGUIHandler { @SubscribeEvent public void renderGUI(RenderGameOverlayEvent.Post event){ Client.hud.draw(); } } Any help would be greatly appreciated
  3. I tried to get the player list, but in game servers like Hypixel, it is unrealistic to get the players of the entire server, so I want to make a module to get the player list in the Tab (players in a lobby) Is this possible? Thanks.
  4. Can anyone please make a script for when you get hit by another entity (or player only), you jump? This can be toggled on/off via the CAPSLOCK key.
  5. So I was told that "only one string" needed to change for this 1.8.9 mod to become a 1.16.5 mod. Im not very sure what this line is as I am new to this coding thing, so I thought I might ask around. Thanks in advance. Here is pt.1 of the code: package studio.dreamys.gui; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import java.awt.Color; import java.io.IOException; import java.net.HttpURLConnection; import java.net.URL; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.gui.GuiTextField; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.util.Session; import org.apache.commons.io.IOUtils; import org.lwjgl.input.Keyboard; import studio.dreamys.TokenAuth; public class SessionGui extends GuiScreen { private GuiScreen previousScreen; private String status = "Session:"; private GuiTextField sessionField; private ScaledResolution sr; public SessionGui(GuiScreen previousScreen) { this.previousScreen = previousScreen; } public void func_73866_w_() { Keyboard.enableRepeatEvents(true); this.sr = new ScaledResolution(this.field_146297_k); this.sessionField = new GuiTextField(1, this.field_146297_k.field_71466_p, this.sr.func_78326_a() / 2 - 100, this.sr.func_78328_b() / 2, 200, 20); this.sessionField.func_146203_f(32767); this.sessionField.func_146195_b(true); this.field_146292_n.add(new GuiButton(998, this.sr.func_78326_a() / 2 - 100, this.sr.func_78328_b() / 2 + 30, 200, 20, "Login")); this.field_146292_n.add(new GuiButton(999, this.sr.func_78326_a() / 2 - 100, this.sr.func_78328_b() / 2 + 60, 200, 20, "Restore")); super.func_73866_w_(); } public void func_146281_b() { Keyboard.enableRepeatEvents(false); super.func_146281_b(); } public void func_73863_a(int mouseX, int mouseY, float partialTicks) { this.func_146276_q_(); this.field_146297_k.field_71466_p.func_78276_b(this.status, this.sr.func_78326_a() / 2 - this.field_146297_k.field_71466_p.func_78256_a(this.status) / 2, this.sr.func_78328_b() / 2 - 30, Color.WHITE.getRGB()); this.sessionField.func_146194_f(); super.func_73863_a(mouseX, mouseY, partialTicks); } protected void func_146284_a(GuiButton button) throws IOException { if (button.field_146127_k == 998) { try { String session = this.sessionField.func_146179_b(); String username; String uuid; String token; if (session.contains(":")) { username = session.split(":")[0]; uuid = session.split(":")[1]; token = session.split(":")[2]; } else { HttpURLConnection c = (HttpURLConnection)(new URL("https://api.minecraftservices.com/minecraft/profile/")).openConnection(); c.setRequestProperty("Content-type", "application/json"); c.setRequestProperty("Authorization", "Bearer " + this.sessionField.func_146179_b()); c.setDoOutput(true); JsonObject json = (new JsonParser()).parse(IOUtils.toString(c.getInputStream())).getAsJsonObject(); username = json.get("name").getAsString(); uuid = json.get("id").getAsString(); token = session; } this.field_146297_k.field_71449_j = new Session(username, uuid, token, "mojang"); this.field_146297_k.func_147108_a(this.previousScreen); } catch (Exception var9) { this.status = "§cError: Couldn't set session (check mc logs)"; var9.printStackTrace(); } } if (button.field_146127_k == 999) { try { this.field_146297_k.field_71449_j = TokenAuth.originalSession; this.field_146297_k.func_147108_a(this.previousScreen); } catch (Exception var8) { this.status = "§cError: Couldn't restore session (check mc logs)"; var8.printStackTrace(); } } super.func_146284_a(button); } protected void func_73869_a(char typedChar, int keyCode) throws IOException { this.sessionField.func_146201_a(typedChar, keyCode); if (1 == keyCode) { this.field_146297_k.func_147108_a(this.previousScreen); } else { super.func_73869_a(typedChar, keyCode); } } } and heres pt.2 : package studio.dreamys; import java.awt.Color; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiMultiplayer; import net.minecraft.util.Session; import net.minecraftforge.client.event.GuiScreenEvent; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import studio.dreamys.gui.SessionGui; @Mod( modid = "ta", name = "TokenAuth", version = "1.1.0" ) public class TokenAuth { public static Minecraft mc = Minecraft.func_71410_x(); public static Session originalSession; public TokenAuth() { } @EventHandler public void preInit(FMLPreInitializationEvent e) { MinecraftForge.EVENT_BUS.register(this); } @SubscribeEvent public void onInitGuiPost(GuiScreenEvent.InitGuiEvent.Post e) { if (e.gui instanceof GuiMultiplayer) { e.buttonList.add(new GuiButton(999, 5, 5, 100, 20, "TokenAuth")); } } @SubscribeEvent public void onDrawScreenPost(GuiScreenEvent.DrawScreenEvent.Post e) { if (e.gui instanceof GuiMultiplayer) { String status = String.format("User: §a%s §rUUID: §a%s", mc.field_71449_j.func_111285_a(), mc.field_71449_j.func_148255_b()); Minecraft.func_71410_x().field_71466_p.func_78276_b(status, 115, 10, Color.WHITE.getRGB()); } } @SubscribeEvent public void onActionPerformedPre(GuiScreenEvent.ActionPerformedEvent.Pre e) { if (e.gui instanceof GuiMultiplayer && e.button.field_146127_k == 999) { Minecraft.func_71410_x().func_147108_a(new SessionGui(e.gui)); } } static { originalSession = mc.field_71449_j; } }
  6. Here, I don't have the version 1.8.9, the oldest version here is 1.16.5. I need help setting up 1.8.9 minecraft version for creating mods in IntelliJ IDEA.
  7. I'm having issues getting my animated model to work properly. When the block is placed, the model animates properly however there is an underlying, non-animating black version of it that is rendering within it. I get no console errors. The black version has all of the fan-blades rendered instead of alternating from one set to another. Block Init: Fan Class: Fan Blockstate:
  8. I am working on updating my mod from 1.7.10 to 1.8.9. In 1.7 i had an inventory that can hold a single block and that block changes the look of the block to the one in the inventory. but with the new json rendering thing i have no idea about how to even touch this. if you can give me any information about how to get this done, I would be grateful.
×
×
  • Create New...

Important Information

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