Jump to content

larsgerrits

Members
  • Posts

    3462
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by larsgerrits

  1. Question: Where did you get FML/Forge 1.8? I can't find it.
  2. Rather then comparing the unlocalized names at all, just compare the items/blocks themself: if(block == myBlock)
  3. Well in the Comparator you can sort it like you want. You can sort based on name, id, block/item.
  4. In the Tutorials section is a nice tutorial by diesieben07 for sorting CreativeTabs.
  5. The constructor is called twice, ones for the server and ones for the client. That's why you need to sync the two, as the server and the client both have different copies of the TileEntity which can contain different values than the TileEntity on the other side.
  6. When you are registering your block, you need to specify the ItemBlock too. GameRegistry.registerBlock(block,CustomItemBlock.class,name);
  7. You do it the same way as other Strings in Java.
  8. Then you should know how to make a String.
  9. No, it means that that method is available from EntityPlayer, but you need an instance of the class for it to call.
  10. You need to register the Blocks and Items in FMLPreInitializationEvent.
  11. No, they are vanilla files and you can look at them yourself (located at Referenced Libraries->forgeSrc.jar)
  12. Did you register your TileEntitiy? Of the Battery and the Cable?
  13. You need to use packets to tell the server to customize the ItemStack and then let the server modify the container including the ItenStacks.
  14. Do you have a GitHub repository? If not, are you willing to make one? Here's a tutorial by Jabelar: http://jabelarminecraft.blogspot.nl/p/minecraft-forge-publishing-to-github.html
  15. Question: Why do you have this code in your FMLPostInitializationEvent: if (event.getSide() == Side.CLIENT) Minecraft.getMinecraft().refreshResources(); } Maybe you could try moving the proxy.registerRenderInformation() to the FMLInitializationEvent.
  16. First: You should initialize/register your blocks in the FMLPreInitializationEvent. Second: Doesn't the RenderingRegistry line show a compile error? Because you are missing some parentheses when making a new constructor of RenderMyExplosive.
  17. First: Please use code tags: [.code]Code Here[./code] (without the dots) Second: Try adding something like System.out.println("rendering!") in your render method. If that spams out the console, it is something wrong with the renderer, or else with the registration with the renderer.
  18. Try putting something like System.out.println("rendering!") in your render class. If that's called, it is something with the renderer, or else it is with the registration of the renderer.
  19. Are you calling proxy.registerRenderInformation() .
  20. You did not what is said you to do. I said:
  21. Your modid you pass in at the @Mod annotation doesn't match up the modid used in your assets/<modid>/textures/* path. You need to change your modid you pass in at the @Mod annotation to "infiniteDiamonds".
  22. You might need to play a little bit with the player's jaw to determine if the player is facing down or up, and with the player's pitch to determine the rotation of the Block.
  23. You can save the ordinals of it using (for example) ForgeDirection#ordinal() .
×
×
  • Create New...

Important Information

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