Jump to content

larsgerrits

Members
  • Posts

    3462
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by larsgerrits

  1. MouseEvent is client-only, so you can use the stuff from the Minecraft class. It has fields for the player ( thePlayer ), the world ( theWorld ) and also the block the mouse is currently over ( objectMouseOver ).
  2. Well, where is the updateEntity method?
  3. If I am reading that right, it does not pass the if(attacker.isSprinting()) , so it does not detect that the player is sprinting.
  4. Explanation from diesieben07 for partialTickTime: http://www.minecraftforge.net/forum/index.php/topic,12681.msg65852.html#msg65852. In your case, because you don't have a partialTickTime available, you can just use 1.0F as the partialTickTime. And yes, you are right about the distance.
  5. I think they are the distance and the partialTickTime.
  6. No, he means you need to put the logs in a spoiler, as they are freakin' long.
  7. If you have missing textures, look at the logs, it shows what Minecraft is searching for instead and may help you figure out the issue. If you can't figure out why, post the logs, so we can help.
  8. 1) You have to pass the coordinates of the entity in the constructor too, or else the entity will be at 0,0,0. 2) Only set the block to air on the server (!world.isRemote), and see if that helps.
  9. Uhm, please tell me you actually have a block class...
  10. The other work because you actually return the proper thing in the proper method.
  11. GuiShopTravellerOver does not extend Container, but you still return it in getServerGuiElement .
  12. Your if-chain (why no switch?) is falling back to this line: return new FCGuiContainer(player); , which means not of your if-statements are true, so the ID must be incorrect. Show where you open your gui. Which always makes me wondering: why does the getServerGuiElement allows you to return basically anything (a Object ), and not an instance of Container by just changing the return type to Container (same goes for getClientGuiElement )?
  13. You can set an ItemStack with the desired NBTTags as the crafting result.
  14. You have to call WorldRenderer#startDrawingQuads() before you add the vertices, and WorldRenderer#draw() after you add the vertices.
  15. I'm sorry, I don't speak ass hole. The float was just me trying to figure out why it was crashing; It was initially set to int. As for the other stuff that’s me coding at 11 o'clock at night. I know Java to a degree but I can't figure out what I need to do with certain things. Such as instantiation. I'm still learning what needs to be instantiated and what doesn't. What the heck is a TESR? Tessellator? Thanks for the help. If you do not know how to initialize a variable in Java, you don't even know one of the most basic things in Java, and you really shouldn't mod Minecraft. So:
  16. That would make all the grass blocks in the world stop ticking, and I'm not sure he wants that or not.
  17. Do you have that in the ClientProxy? If not, you should. Just a FYI, I was having some problems with custom state mappers to0, and I couldn't figure it out too...
  18. Do you think telling us that you want to update and giving a piece of code would help? Tell us what the exact problem is, and where that problem is. So not someting like 'I want to update! Please fix my code for me!', but full, proper english sentences that makes us understand the problem so we can actually help you.
  19. tileIsolatedFurnace will always be null , as you never assign value to it...
  20. Your JSON file is called SteelIngot.json , but you tell it to search for item.SteelIngot.json ...
  21. Then post code where it is registered... Look at his main mod file. He doesn't actually register any renderers, but he cancels the vanilla rendering and renders his own instead.
  22. Where is your your JSON file located?
×
×
  • Create New...

Important Information

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