Jump to content

larsgerrits

Members
  • Posts

    3462
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by larsgerrits

  1. Did you register the class that contains the @SubscribeEvent? If so, show where you registered it.
  2. Does this issue persist with the latest Forge?
  3. This topic has been moved to Support & Bug Reports. [iurl]http://www.minecraftforge.net/forum/index.php?topic=24457.0[/iurl]
  4. Try moving the line that declares the WorldGenMinable inside the for loop, so it won't use the same on over and over again.
  5. It is limited to 256x256 because of this value: 0.00390625F (found in the drawTexturedModalRect method). To make your own method, simply copy that method, rename the parameters to something meaninful, and change the f and f1 to 1/yourImageSize . Then call that method instead of the vanilla method. Or use the method MultiMote linked if you intend to use that for multiple sizes.
  6. drawTexturedModalRect only supports 256x256 images. You need to create your own method for other image sizes.
  7. Your chancesToSpawn is way too high! You set it to 1000, meaning it will try to generate it 1000 times per chunk! You need to lower it.
  8. If you crash, post your crash log.
  9. Don't use @SideOnly!!! Use !world.isRemote !
  10. Only modify the world on the server side: !world.isRemote .
  11. Using Minecraft.getMinecraft().mcDataDir.getAbsolutePath(); will get you till the .minecraft folder. You probably know what you need to do to go the themods folder from that.
  12. Post your model class.
  13. Try using a clean installation of Forge.
  14. This topic has been moved to Support & Bug Reports. [iurl]http://www.minecraftforge.net/forum/index.php?topic=24397.0[/iurl]
  15. You might want to look at this thread: [utl]http://www.minecraftforge.net/forum/index.php/topic,24119.0.html[/url]
  16. Assuming you already have the writeToNBT and the readFromNBT method, you only need to override the getDescriptionMethod to return a new S35PacketUpdateTileEntity(x,y,z,3,tag) with tag the a NBTTagCompound on which you called writeToNBT , and the onDataPacket(NetworkManager,S35PacketUpdateTileEntity) method in which you call the readFromNBT with S35PacketUpdateTileEntity#func_148857_g()
  17. To do that you need to call TerrainGen.generateOre(params) . The BiomeDecorator.generateOres() method has a few calls to that method, so you can look there for some examples.
  18. Try the latest version.
  19. I suggest looking at the FoodStats class. You can get it from EntityPlayer#getFoodStats() .
  20. If you want to use that code Jabelar posted with a ResourceLocation, you can use ResourceLocation#getResourceDomain() in place of my_mod , and ResourceLocation#getResourcePath() in place of my_folder/myFile.txt .
  21. Keybindings are client-side, so you are modifying the ItemStack on the client side, but you need to change is server side. You need to send a packet to the server, telling the server that the button has been pressed, and let the server change the ItemStack.
  22. In the onDataPacket method, you need call readFromNBT instead of directly calling ItemStack#loadItemStackFromNBT
  23. Post your code with the methods TheGreyGhost advised.
×
×
  • Create New...

Important Information

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