Jump to content

Looke81

Members
  • Posts

    250
  • Joined

  • Last visited

Everything posted by Looke81

  1. Hey all I made two Guis and they work how i want . But if i try to handle both of them with the IGuiHandler using two different gui handlers my game crashes when i open them.But if i just use one gui handler for one gui that gui works.But obviously i want both to work. I have spent a lot hours now but i'm sure the answer is just staring me in the face.Oh and yes i have registered them in main mod file. Gui Handler 1 http://pastebin.com/demSEZeW Gui Handler 2 http://pastebin.com/LqNNks9A
  2. Oh right I see. So what do you suggest I do?
  3. But i'm testing if world is remote shouldn't that make it client only?
  4. Yea sorry i really mash my stuff together and i'l fix the other issues before and after ive got it to load on the server. shader change class : http://pastebin.com/RnNqAcHn
  5. Ok here you go i hoped this worked. First time paste bin user here : http://pastebin.com/kvevwyqA
  6. Ok that's really useful but unfortunately i'm only using the minecraft class in a GUI class and i dont have access to the the world you probably want to see my class. package com.Looke81.BioWarfare.gui; import org.lwjgl.opengl.GL11; import com.Looke81.BioWarfare.BioWarfare; import com.Looke81.BioWarfare.DrawB; import com.Looke81.BioWarfare.DrawM; import com.Looke81.BioWarfare.blocks.BacteriaTest; import com.Looke81.BioWarfare.handler.BioWarfareEventHandler; import com.Looke81.BioWarfare.items.Microscope; import cpw.mods.fml.common.eventhandler.EventPriority; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.Gui; import net.minecraft.client.gui.GuiChat; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.client.renderer.OpenGlHelper; import net.minecraft.client.renderer.Tessellator; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.event.RenderGameOverlayEvent.ElementType; @SideOnly(Side.CLIENT) public class OverlayGui extends Gui{ public static OverlayGui instance = new OverlayGui(); private static Minecraft mc = Minecraft.getMinecraft(); private ResourceLocation MOverlay = new ResourceLocation(BioWarfare.modid + ":textures/gui/MOverlay.png"); @SubscribeEvent (priority = EventPriority.LOWEST) public void RenderGameOverlayEvent(net.minecraftforge.client.event.RenderGameOverlayEvent.Pre event) { ScaledResolution sr = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight); int Width = sr.getScaledWidth(); int Height = sr.getScaledHeight(); if (Microscope.bindedtexture == 1 && BioWarfareEventHandler.HasMicroscopeInInv == true ) { mc.gameSettings.fovSetting = 25F; // texture Tessellator tessellator = Tessellator.instance; tessellator.startDrawingQuads(); tessellator.addVertexWithUV(0.0D, (double)Height, -90.0D, 0.0D, 1.0D); tessellator.addVertexWithUV((double)Width, (double)Height, -90.0D, 1.0D, 1.0D); tessellator.addVertexWithUV((double)Width, 0.0D, -90.0D, 1.0D, 0.0D); tessellator.addVertexWithUV(0.0D, 0.0D, -90.0D, 0.0D, 0.0D); tessellator.draw(); this.mc.renderEngine.bindTexture(MOverlay); if (event.type == ElementType.HOTBAR) { event.setCanceled(true); } if (event.type == ElementType.CROSSHAIRS) { event.setCanceled(true); } if (event.type == ElementType.TEXT) { event.setCanceled(true); } if (event.type == ElementType.HEALTH) { event.setCanceled(true); } if (event.type == ElementType.FOOD) { event.setCanceled(true); } if (event.type == ElementType.ARMOR) { event.setCanceled(true); } if (event.type == ElementType.EXPERIENCE) { event.setCanceled(true); } if (event.type == ElementType.CHAT) { event.setCanceled(true); } if (event.type == ElementType.JUMPBAR) { event.setCanceled(true); } }else{ mc.gameSettings.fovSetting = 70F; } } }
  7. so everywhere i use the minecraft class i need to use @SideOnly(Side.CLIENT) that puts it on the client side only right?
  8. Hey all.When i load up my mod on the client everything works and it loads fine but it crashes when loading on the server?I know i'm probably doing something on the server side that i shouldn't be but i cant find what.Any help would be really useful because i'm stuck. console log: ___________________________________________________________________________________________________________________________________ [21:01:39] [server thread/ERROR] [FML]: Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue [21:01:39] [server thread/ERROR] [FML]: mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{7.10.24.1187} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.0.1187.jar) Unloaded->Constructed->Pre-initialized->Initialized Forge{10.13.0.1187} [Minecraft Forge] (forgeSrc-1.7.10-10.13.0.1187.jar) Unloaded->Constructed->Pre-initialized->Initialized BioWarfare{0.0.1 Alpha} [bioWarfare] (bin) Unloaded->Constructed->Pre-initialized->Errored [21:01:39] [server thread/ERROR] [FML]: The following problems were captured during this phase [21:01:39] [server thread/ERROR] [FML]: Caught exception from BioWarfare java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft at com.Looke81.BioWarfare.handler.BioWarfareEventHandler.<clinit>(BioWarfareEventHandler.java:45) ~[bioWarfareEventHandler.class:?] at com.Looke81.BioWarfare.BioWarfare.load(BioWarfare.java:289) ~[bioWarfare.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[FMLModContainer.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) [Loader.class:?] at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:97) [FMLServerHandler.class:?] at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:318) [FMLCommonHandler.class:?] at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:213) [DedicatedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:455) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:762) [MinecraftServer$2.class:?] Caused by: java.lang.ClassNotFoundException: net.minecraft.client.Minecraft at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) ~[launchwrapper-1.9.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:423) ~[?:1.7.0_21] at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ~[?:1.7.0_21] ... 34 more Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/Minecraft for invalid side SERVER at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50) ~[forgeSrc-1.7.10-10.13.0.1187.jar:?] at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:276) ~[launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:174) ~[launchwrapper-1.9.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:423) ~[?:1.7.0_21] at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ~[?:1.7.0_21] ... 34 more [21:01:39] [server thread/ERROR]: Encountered an unexpected exception cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft at cpw.mods.fml.common.LoadController.transition(LoadController.java:162) ~[LoadController.class:?] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:692) ~[Loader.class:?] at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:97) ~[FMLServerHandler.class:?] at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:318) ~[FMLCommonHandler.class:?] at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:213) ~[DedicatedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:455) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:762) [MinecraftServer$2.class:?] Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft at com.Looke81.BioWarfare.handler.BioWarfareEventHandler.<clinit>(BioWarfareEventHandler.java:45) ~[bioWarfareEventHandler.class:?] at com.Looke81.BioWarfare.BioWarfare.load(BioWarfare.java:289) ~[bioWarfare.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[FMLModContainer.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) ~[LoadController.class:?] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) ~[Loader.class:?] ... 5 more Caused by: java.lang.ClassNotFoundException: net.minecraft.client.Minecraft at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) ~[launchwrapper-1.9.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:423) ~[?:1.7.0_21] at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ~[?:1.7.0_21] at com.Looke81.BioWarfare.handler.BioWarfareEventHandler.<clinit>(BioWarfareEventHandler.java:45) ~[bioWarfareEventHandler.class:?] at com.Looke81.BioWarfare.BioWarfare.load(BioWarfare.java:289) ~[bioWarfare.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[FMLModContainer.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) ~[LoadController.class:?] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) ~[Loader.class:?] ... 5 more Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/Minecraft for invalid side SERVER at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50) ~[forgeSrc-1.7.10-10.13.0.1187.jar:?] at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:276) ~[launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:174) ~[launchwrapper-1.9.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:423) ~[?:1.7.0_21] at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ~[?:1.7.0_21] at com.Looke81.BioWarfare.handler.BioWarfareEventHandler.<clinit>(BioWarfareEventHandler.java:45) ~[bioWarfareEventHandler.class:?] at com.Looke81.BioWarfare.BioWarfare.load(BioWarfare.java:289) ~[bioWarfare.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[FMLModContainer.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) ~[LoadController.class:?] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) ~[Loader.class:?] ... 5 more [21:01:39] [server thread/ERROR]: This crash report has been saved to: C:\Users\Daniel\Desktop\MineCraft Java Script\Minecraft Mods\eclipse\.\crash-reports\crash-2014-10-31_21.01.39-server.txt [21:01:39] [server thread/WARN] [FML]: Can't revert to frozen GameData state without freezing first. [21:01:39] [server thread/INFO] [FML]: Applying holder lookups [21:01:39] [server thread/INFO] [FML]: Holder lookups applied [21:01:39] [server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED. Errors may have been discarded. [21:01:39] [server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state AVAILABLE. Errors may have been discarded. ___________________________________________________________________________________________________________________________________
  9. Thanks! its working now. The reason i wanted to test for the durability was because i wanted to make something happen when the potion effect runs out. Unfortunately if you clear the potion effect by dying or drinking a milk bucket etc... it obviously doesn't work. Is there any way to test when a potion effect is cleared?
  10. I cant find any way to do this, hopefully you can. If it helps i want to test the time left for the player.
  11. I pretty sure the resource location is working as i can see the texture. I've removed the push and pop Im not sure why I did that but i saw it in other peoples code so i did it to be safe.My texture is 256x256. Also I've kept the event the same because I'm not sure what event i should use if i just want it to display all the time when in game. I think the problem is with scaled resolution because when i use scaled resolution it fills the screen repeating the image from left to right but if i don't use scaled resolution and instead tell it its 256x256 then it displays one image in the top left that is 256x256. I have tried changing this so that the one image will fill the whole screen but it doesn't seem to work the only time i can fill the screen is when i use scaled resolution but it just repeats the image. So what im asking is how do i fill the screen with one image and what even should i use to display all the time?
  12. @EventHandler public void load(FMLInitializationEvent event) { MinecraftForge.EVENT_BUS.register(OverlayGui.instance); }
  13. Hello everyone i have an overlay i am trying to put onscreen and i have got it to display but it displays multiple of the image on screen and i just want it to display one image.Any ideas? p.s my image is 256x256 if that helps. Heres the code import org.lwjgl.opengl.GL11; import com.Looke81.BioWarfare.BioWarfare; import com.Looke81.BioWarfare.DrawB; import com.Looke81.BioWarfare.DrawM; import com.Looke81.BioWarfare.blocks.BacteriaTest; import com.Looke81.BioWarfare.items.Microscope; import cpw.mods.fml.common.eventhandler.EventPriority; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.Gui; import net.minecraft.client.gui.GuiChat; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.client.renderer.Tessellator; import net.minecraft.util.ResourceLocation; public class OverlayGui extends Gui{ public static OverlayGui instance = new OverlayGui(); private static Minecraft mc = Minecraft.getMinecraft(); private ResourceLocation MOverlay = new ResourceLocation(BioWarfare.modid + ":textures/gui/MOverlay.png"); @SubscribeEvent (priority = EventPriority.LOWEST) public void RenderGameOverlayEvent(net.minecraftforge.client.event.RenderGameOverlayEvent event) { ScaledResolution sr = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight); int Width = sr.getScaledWidth(); int Height = sr.getScaledHeight(); GL11.glPushMatrix(); this.mc.renderEngine.bindTexture(MOverlay); // texture this.drawTexturedModalRect(0, 0, 0, 0, Width, Height); GL11.glPopMatrix(); } }
  14. Hey all I am using this to spawn a the mobspell particle around the player when my custom potion is active but I cant get it to colour. Any ideas? player.worldObj.spawnParticle("mobSpell", x,y,z, 1D, 1D,1D);
  15. I don't know if it helps but i had this problem to and it happens when using the see through texture i would also be interested in a fix for this.
  16. Hey everyone i was wondering if it was possible to hide an item from the minecraft mod Nei (Not Enough Items) if any one can help with this it would be awesome and if its possible to do without the api that would be even better thanks in advance Looke81
  17. no but seriously im lost here.
  18. *sigh* (you know whats coming) so...errr.....how do i do that?
  19. Err then how?is the a way to force the block to use a 16 x 16 texture then? Or a way to make it constantly change its texture? otherwise i don't have a clue.
  20. So do you mean make the texture change when the damage value does and make my block keep changing its damage value?
  21. I am using TileEntitySpecialRenderer
  22. Is there someway i can specify that it uses a 16x16 texture instead of all of the texture?
×
×
  • Create New...

Important Information

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