Gingerbreadman
Members-
Posts
74 -
Joined
-
Last visited
Everything posted by Gingerbreadman
-
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?
-
Better way of doing attackEntity?
Gingerbreadman replied to Gingerbreadman's topic in Modder Support
I don't have access to the server... -
Better way of doing attackEntity?
Gingerbreadman replied to Gingerbreadman's topic in Modder Support
its in the OP post. -
Better way of doing attackEntity?
Gingerbreadman replied to Gingerbreadman's topic in Modder Support
I have them all in one spot, and I attack them, for some reason most hits dont register. -
Better way of doing attackEntity?
Gingerbreadman replied to Gingerbreadman's topic in Modder Support
yes -
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(); }
-
Thank you all for helping me out!
-
Whats the name of the GUI screen of the actual game ingame?
-
k, I thought the game was multi threaded xdd, going to make new timers now on the same thread
-
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); }
-
I don't see the link between itemuse, and what I am doing.
-
At least tell us what is null on that line so we can do your work for you. EntityPlayer.itemInUse (ItemStack)
-
it it to do with me creating the connection on a keybind?
-
bump...
-
Getting UUID from Minecraft.getMinecraft().getSession();
Gingerbreadman replied to Gingerbreadman's topic in Modder Support
Solved. -
bump
-
spoonfeed me abit?
-
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?
-
you know what am I doing wrong?
-
Changing armour used to armour in the hotbar
Gingerbreadman replied to Gingerbreadman's topic in Modder Support
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. -
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?
-
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()));
-
FMLClientHandler.instance().setupServerList();//might be unnecessary FMLClientHandler.instance().connectToServer(new GuiMultiplayer(FMLClientHandler.instance().getClient().currentScreen), new ServerData("", Main.getConfigData().getIP() + ":" + Main.getConfigData().getPort()));