Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Trusak

Members
  • Joined

  • Last visited

Everything posted by Trusak

  1. Minecraft.getMinecraft().fontRendererObj.drawString("FPS: " + fps, 10, 10, Color.ORANGE.getRGB()); but FPS works fine
  2. Nope, that didn't fix it either
  3. As far as I know, this forum does not support 1.7 anymore. (Not sure tho)
  4. Hello, I want my mod to show the Player's ping when he is on a server, but whenever I join a Server my Minecraft crashes with this error: [spoiler=Error] [12:38:54] [Client thread/ERROR] [FML]: Exception caught during firing event net.minecraftforge.client.event.RenderGameOverlayEvent$Text@651eefb3: java.lang.NullPointerException at Clean.Coins.CC.onRenderGameOverlay(CC.java:148) ~[CC.class:?] at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_7_CC_onRenderGameOverlay_Text.invoke(.dynamic) ~[?:?] at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:49) ~[ASMEventHandler.class:?] at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:140) [EventBus.class:?] at net.minecraftforge.client.GuiIngameForge.renderHUDText(GuiIngameForge.java:669) [GuiIngameForge.class:?] at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:149) [GuiIngameForge.class:?] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1135) [EntityRenderer.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1107) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:380) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:116) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_111] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_111] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_111] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_111] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_111] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_111] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] [12:38:54] [Client thread/ERROR] [FML]: Index: 1 Listeners: [12:38:54] [Client thread/ERROR] [FML]: 0: NORMAL [12:38:54] [Client thread/ERROR] [FML]: 1: ASM: Clean.Coins.CC@109a28c8 onRenderGameOverlay(Lnet/minecraftforge/client/event/RenderGameOverlayEvent$Text;)V [12:38:55] [Client thread/INFO] [FML]: Applying holder lookups [12:38:55] [Client thread/INFO] [FML]: Holder lookups applied [12:38:56] [Client thread/FATAL]: Unreported exception thrown! java.lang.NullPointerException at Clean.Coins.CC.onRenderGameOverlay(CC.java:148) ~[CC.class:?] at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_7_CC_onRenderGameOverlay_Text.invoke(.dynamic) ~[?:?] at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:49) ~[ASMEventHandler.class:?] at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:140) ~[EventBus.class:?] at net.minecraftforge.client.GuiIngameForge.renderHUDText(GuiIngameForge.java:669) ~[GuiIngameForge.class:?] at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:149) ~[GuiIngameForge.class:?] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1135) ~[EntityRenderer.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1107) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:380) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:116) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_111] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_111] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_111] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_111] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_111] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_111] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] [12:38:56] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:612]: ---- Minecraft Crash Report ---- // I'm sorry, Dave. Time: 11.12.16 12:38 Description: Unexpected error java.lang.NullPointerException: Unexpected error at Clean.Coins.CC.onRenderGameOverlay(CC.java:148) at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_7_CC_onRenderGameOverlay_Text.invoke(.dynamic) at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:49) at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:140) at net.minecraftforge.client.GuiIngameForge.renderHUDText(GuiIngameForge.java:669) at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:149) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1135) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1107) at net.minecraft.client.Minecraft.run(Minecraft.java:380) at net.minecraft.client.main.Main.main(Main.java:116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at Clean.Coins.CC.onRenderGameOverlay(CC.java:148) at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_7_CC_onRenderGameOverlay_Text.invoke(.dynamic) at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:49) at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:140) at net.minecraftforge.client.GuiIngameForge.renderHUDText(GuiIngameForge.java:669) at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:149) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityPlayerSP['Player749'/194085, l='MpServer', x=8,50, y=65,00, z=8,50]] Chunk stats: MultiplayerChunkCache: 0, 0 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: Level spawn location: -11,00,63,00,10,00 - World: (-11,63,10), Chunk: (at 5,3,10 in -1,0; contains blocks -16,0,0 to -1,255,15), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Level time: 0 game time, 0 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false Forced entities: 1 total; [EntityPlayerSP['Player749'/194085, l='MpServer', x=8,50, y=65,00, z=8,50]] Retry entities: 0 total; [] Server brand: Spigot Server type: Non-integrated multiplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:383) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2645) at net.minecraft.client.Minecraft.run(Minecraft.java:409) at net.minecraft.client.main.Main.main(Main.java:116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) -- System Details -- Details: Minecraft Version: 1.8.9 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_111, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 685120176 bytes (653 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95 FML: MCP 9.19 Powered by Forge 11.15.1.1902 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHIJA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCHIJA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8.9-11.15.1.1902-1.8.9.jar) UCHIJA Forge{11.15.1.1902} [Minecraft Forge] (forgeSrc-1.8.9-11.15.1.1902-1.8.9.jar) UCHIJA TruSP{1.0} [simplePixel] (bin) Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 358.91' Renderer: 'GeForce GT 610/PCIe/SSE2' Launched Version: 1.8.9 LWJGL: 2.9.4 OpenGL: GeForce GT 610/PCIe/SSE2 GL version 4.5.0 NVIDIA 358.91, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: No Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: TrusakPack.zip Current Language: English (US) Profiler Position: N/A (disabled) CPU: 4x AMD A10-5800K APU with Radeon(tm) HD Graphics [12:38:56] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:612]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\trusa\Desktop\Mods\Test Mod D\run\.\crash-reports\crash-2016-12-11_12.38.56-client.txt AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release [spoiler=Code] @SubscribeEvent public void onRenderGameOverlay(RenderGameOverlayEvent.Text event){ if(Minecraft.getMinecraft().thePlayer != null){ int fps = Minecraft.getDebugFPS(); Minecraft.getMinecraft().fontRendererObj.drawString("FPS: " + fps, 10, 10, Color.ORANGE.getRGB()); /*if(!Minecraft.getMinecraft().isIntegratedServerRunning()){ int ping = Minecraft.getMinecraft().getNetHandler().getPlayerInfo(Minecraft.getMinecraft().thePlayer.getUniqueID()).getResponseTime(); Minecraft.getMinecraft().fontRendererObj.drawString("Ping: " + ping, 10, 20, Color.CYAN.getRGB()); }*/ } }
  5. It says Do you not know what that means? I guess I should make it public static Property doesStuff; public void preInit(FMLPreInitializationEvent event) { Configuration config = new Configuration(event.getSuggestedConfigurationFile()); doesStuff = config.get(name, category, defaultValue, comment); } but then I can't get it in the Button
  6. And how can I put it into the button? It only works when it is in the preInit. doesStuff = config.get(name, category, false, "").getBoolean(); Loads a boolean called doesStuff into code. Then I can change that boolean and it will change in the file. In case of a button you use Gui#actionPerformed(GuiButton). Check if the button is the button you want then change the boolean called doesStuff in this example. I just tried @Override protected void actionPerformed(GuiButton button) throws IOException { if(button == button2) { Minecraft.getMinecraft().displayGuiScreen(new GUI2()); doesStuff = config1.get(name, category, false, "").getBoolean(); } but it doesnt work. Am I doing something wrong?
  7. And how can I put it into the button? It only works when it is in the preInit.
  8. But how? Can you give me an example?
  9. I am kinda new to modding and dont't know how to do that . (Yet) Anyway, from the methods I figured out that I should probably be using public Property get(String category, String key, boolean defaultValue) { return get(category, key, defaultValue, (String) null); }
  10. Yes, I have seen that, but I can't find what to do when I want a button inside of a GUI to change it: if(button == button23) { boolean State1 = FastExamples.NotResetVariables.AnnoyingMessagesEnabled(); Minecraft.getMinecraft().displayGuiScreen(new GUI()); //Here I want that Boolean1, which is "false" by default to change to "true" when I click the button config1.load(); Boolean1 = config1.getBoolean("PMs", "Booleans", false, "Disable to disable by default"); config1.save();
  11. Does it also work if I am using it in the preInit? @EventHandler public static void preInit(FMLPreInitializationEvent event) { //NoToxic.init(); //NoToxic.register(); Configuration config1= new Configuration(event.getSuggestedConfigurationFile()); config1.load(); FastExamples.NotResetVariables.PMs = config1.getBoolean("PMs", "Booleans", false, "Disable to disable by default"); FastExamples.NotResetVariables.PMs = config1.getBoolean("InstantRejoin", "Booleans", false, "Disable to disable by default"); FastExamples.NotResetVariables.PMs = config1.getBoolean("ShowPartyChat", "Booleans", false, "Disable to disable by default"); FastExamples.NotResetVariables.PMs = config1.getBoolean("ShowGuildChat", "Booleans", false, "Disable to disable by default"); config1.save(); } And if yes, how can I change it inside an event?
  12. Got any specific tutorials? I am not sure what I am looking for
  13. Whenever I push a button, I want my boolean to change AND STAY AFTER QUITTING MINECRAFT. Example: private static boolean instantRejoin = false; public static boolean instaRejoinEnabled(){ return (instantRejoin = !instantRejoin); } public static boolean instaRejoinInfo(){ return (instantRejoin); }
  14. Hey, while making my mod I ran into a stupid problem: Each time I restart Minecraft, my booleans get reset to default. I would like to make them stay like they are even after restarting Minecraft, but I cant find a way on how to do it. I already tried to make it via a config but I dont want to change the config manually (via a text editor) but with a button. I hope you can help me and tell me if you need anything! (Some code or my config)
  15. Does that mean that you want me to put my code into my ServerProxy Class?
  16. Yes, but you know that I only want it to be for me and to work on all servers?
  17. So how can I do it?
  18. I want my messages to have words changed before they are sent. Here I want message "lol no" to be changed to "* no". When I type in "lol no" in SinglePlayer, it is changed to "* no" but when I type it in Multiplayer, nothing happens and "lol no" is being sent
  19. Hey, currently I am making a mod that would replace my own messages and I have a problem: My code only works in SinglePlayer. I tried all possible ChatCodes and none of them works. Code: @SubscribeEvent public void Send(ServerChatEvent event){ String message = event.message; if(message.contains(EnumChatFormatting.WHITE + "lol")){ event.setCanceled(true); message = message.replace("lol", "*"); Minecraft.getMinecraft().thePlayer.sendChatMessage(message); } I have also tried stuff like EnumChatFormatting.getTextWithoutFormattingCodes or EnumChatFormatting.RESET Nothing is working Thanks for help already!
  20. And how can I make it so the player sends a different message? (I want it to work on servers)
  21. Hey, I am creating my first mod right now and I want to prevent the player from sending a chat message and sending a different one instead. It would be really awesome if someone could help. Thank you already!

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.