Jump to content

Tiffiter123

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by Tiffiter123

  1. So I am currently having a problem when my client connects to my server. The client gets kicked and the logs get filled with errors. I feel like I did something terribly wrong but I have no idea what. The error the client gets is "A fatal error has occurred, this connection is terminated". The client does not crash. Links: Client Logs (Pastebin) Source Code If you need anything else, please let me know!
  2. I see the problem now, I forgot to bind the blocks texture
  3. In 1.7.10 I used the IIcon but I have no idea what to do now. I am assuming I am supposed to use TextureAtlasSprite but I can't seem to get that to work either
  4. I can't seem to figure out how to render an animated liquid into a gui. In 1.7.10 it was easy, but I am unable to port it. What I did for 1.7.10: private void drawFluidTank(IFluidTank tank, int x, int y){ FluidStack fluid = tank.getFluid(); TextureManager manager = mc.getTextureManager(); if (fluid != null){ manager.bindTexture(manager.getResourceLocation(0)); float amount = fluid.amount; float capacity = tank.getCapacity(); float scale = amount / capacity; int fluidTankHeight = 60; int fluidAmount = (int) (scale * fluidTankHeight); drawFluid(x, y + fluidTankHeight - fluidAmount, fluid.getFluid().getIcon(fluid), 16, fluidAmount); } } private void drawFluid(int x, int y, IIcon icon, int width, int height){ int i = 0; int j = 0; int drawHeight = 0; int drawWidth = 0; for (i = 0; i < width; i += 16){ for (j = 0; j < height; j += 16) { drawWidth = Math.min(width - i, 16); drawHeight = Math.min(height - j, 16); drawTexturedModelRectFromIcon(x + i, y + j, icon, drawWidth, drawHeight); } } }
  5. Thank you soooooo much you just saved my mod you definitely deserve a "thank you"
  6. this is a... very interesting concept I can't really help you tho, but if noone does then try looking into a tutorial on it
  7. Please explain more. And here is my whole main class:
  8. Ok.. you need to have patience. everyone doesn't know everything. But once in a while the perfect smarty pants comes along and makes your life much easier
  9. Minecraft is based on blocks. Anyways, you can always delete the squarness of models upon texturing by making invisable textures.
  10. This has been solved. A moderator may delete this post. Ok. Simple. For my mod I made a seed that would plant my crop. When I run minecraft, the game would crash. I know its not the crop because I comment out the seed, plant the crop (/give is how I got the crop) and all goes well. I uncomment the seed and boom crash. The crash reoport says something about when I do the "blahBlah = new BlahBlah" part. Main File: Seed File: Crash Report:
  11. Your not stupid, its not like you have to now everything!
  12. What do you mean "it doesn't let me" If it just stays in the same screen, try leaving it, watch tv do something, and come back, it may have loaded then.
  13. Im soooooo confused right now... send me ONLY the part that says the block harvest level and all that.
  14. Reinstall Forge because it seems that some FML classes cannot be found.
×
×
  • Create New...

Important Information

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