Jump to content

Gingerbreadman

Members
  • Posts

    74
  • Joined

  • Last visited

Everything posted by Gingerbreadman

  1. ICommandSender ics = Minecraft.getMinecraft().thePlayer; This returns null while I launch the actual game... it works fine in singleplayer, but in multiplayer it crashes with a nullpointer. Anyone help me?
  2. I have them all in one spot, and I attack them, for some reason most hits dont register.
  3. I am using player controller to attack like 90 entities in one block, the only problem is that it stops attacking them after a while if(Minecraft.getMinecraft().objectMouseOver.typeOfHit == MovingObjectType.ENTITY) { if(Minecraft.getMinecraft().objectMouseOver.entityHit instanceof EntityBlaze) { Minecraft.getMinecraft().playerController.attackEntity(Minecraft.getMinecraft().thePlayer, Minecraft.getMinecraft().objectMouseOver.entityHit); Minecraft.getMinecraft().thePlayer.swingItem(); }
  4. Whats the name of the GUI screen of the actual game ingame?
  5. k, I thought the game was multi threaded xdd, going to make new timers now on the same thread
  6. instead of a nullpointer, now I am getting a runtime error [15:52:20] [Timer-0/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: java.lang.RuntimeException: No OpenGL context found in the current thread. Exception in thread "Timer-0" [15:52:20] [Timer-0/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at org.lwjgl.opengl.GLContext.getCapabilities(GLContext.java:124) [15:52:20] [Timer-0/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.gui.GuiMainMenu.<init>(GuiMainMenu.java:125) [15:52:20] [Timer-0/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.client.FMLClientHandler.connectToServerAtStartup(FMLClientHandler.java:806) [15:52:20] [Timer-0/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.RPD.BlazeBot.Bot$3.run(Bot.java:67) [15:52:20] [Timer-0/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.util.TimerThread.mainLoop(Unknown Source) [15:52:20] [Timer-0/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.util.TimerThread.run(Unknown Source) and my event @SubscribeEvent public void onDisconnect(ClientDisconnectionFromServerEvent e) { Timer t = new Timer(); t.schedule(new TimerTask() { @Override public void run() { FMLClientHandler.instance().connectToServerAtStartup("192.168.1.8", 69); } }, 5000); }
  7. I don't see the link between itemuse, and what I am doing.
  8. At least tell us what is null on that line so we can do your work for you. EntityPlayer.itemInUse (ItemStack)
  9. it it to do with me creating the connection on a keybind?
  10. The title explains everything basically, except that I need to use getSession() because I need to get the uuid in the @preinit
  11. at net.minecraft.launchwrapper.Launch.main(Launch.java:28) ^I think the nullpointer is caused because there is no arguments on line 28 at net.minecraft.launchwrapper.Launch.main?
  12. I have one armour set that I am using, when its damaged I want to change it with another one I have in my hotbar.
  13. I need to switch the set of armour I am wearing with the one I have in my hot bar (E.G slots 3, 4, 5, 6) how would I do this?
  14. I keep getting a nullpointer D: java.lang.NullPointerException at net.minecraft.client.Minecraft.runTick(Minecraft.java:1994) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1028) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_71] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] My code FMLClientHandler.instance().connectToServerAtStartup(Main.getConfigData().getIP(), Integer.parseInt(Main.getConfigData().getPort()));
  15. FMLClientHandler.instance().setupServerList();//might be unnecessary FMLClientHandler.instance().connectToServer(new GuiMultiplayer(FMLClientHandler.instance().getClient().currentScreen), new ServerData("", Main.getConfigData().getIP() + ":" + Main.getConfigData().getPort()));
×
×
  • Create New...

Important Information

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