Jump to content

larsgerrits

Members
  • Posts

    3462
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by larsgerrits

  1. I'm guessing you are using Optifine, so make sure you are using the latest version for your Minecraft version as well.
  2. Don't download mods or Forge from websites like minecraftsix.com. They redistribute mods without permission of the owner, which means they don't earn anything from it. Download mods from Curse or their Minecraft Forum's post, and Forge from the official file server.
  3. http://mcforge.readthedocs.io/en/latest/datastorage/capabilities/. This is all I can give you without you being more specific.
  4. You're right. Forge is not out yet for 1.11.2, so you have to wait for that to release.
  5. List<String> list = new ArrayList<>(); list.add(String.valueOf(currStack.getDisplayName())); list.add("$" + (String.valueOf(tile.getItemCost(slot)))); FontRenderer font = stack.getItem().getFontRenderer(stack); net.minecraftforge.fml.client.config.GuiUtils.preItemToolTip(stack); this.drawHoveringText(list, x, y, (font == null ? fontRendererObj : font)); net.minecraftforge.fml.client.config.GuiUtils.postItemToolTip(); Try adding the cost after the tooltip event, as NEI might tinker with that. Also, not that you should, but you should probably use JEI instead of NEI, because NEI is doing some unnecessary core-modding which JEI doesn't. And as we all know, core-modding is bad.
  6. GameRegistry.register(new ItemBlock(block))
  7. 1.7.10 is no longer supported by Forge.
  8. Here is the official documentation of Forge, but it is rather incomplete. As far as I know, there's no central database of tutorial websites, so you just have to google a specific subject and hope there's a tutorial for it. But I hope you don't expect a tutorial about everything, as there isn't.
  9. If you look closely, it is 2.2 * 10-308, making it so much closer to 0, and that may be outside of the Double range, causing it to set to 0? Don't know for sure, I'm too lazy to figure that out.
  10. Your plank block is null at the time you initialize your seed Item . My guess is that you're initializing your seed before your plant, resulting is passing a null to the constructor of ItemSeed .
  11. Before models were introduced, I would use Techne to visualize my models and my texture layout, and then code the model myself, because Techne's model exporting is horrible... But to visualize it it very nice.
  12. onBlockActivated ?
  13. Show your code.
  14. If should, but it might just take a really long time if you don't have enough RAM for Gradle. Try to assign it more.
  15. You can do both actually. Forge supports using static methods as event listeners ever since this commit. I should get some sleep...
  16. Always go for the Minecraft version the latest recommended version of Forge is for, and in this case 1.11.
  17. Maybe you can get help on the Minecraft forums, but certainly not here.
  18. Yeah, really late. Like 3.5 years late... Make your own post, and show what you have tried.
  19. Update to 1.10.2, 1.7.10 is no longer supported here.
  20. You should register an instance of the class containing the @SubscribeEvent handler, not the class.
  21. When you save the NBTTagCompound inside the ItemStack , you also save the coordinates of the Block at the location it was broken at. Then, when you place it down, you read from the ItemStack 's NBTTagCompound , thus also setting the position of the TileEntity to the coordinates of the previous location. This may be why it's not getting ticked. Setting the correct position after reading from NBT should fix this issue, if this is what caused it.
×
×
  • Create New...

Important Information

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