Everything posted by larsgerrits
-
[1.7.10] Need Help With Drawing An Overlay OnScreen [SOLVED]
Did you register the class that contains the @SubscribeEvent? If so, show where you registered it.
-
Fun Random crash
Does this issue persist with the latest Forge?
-
MOVED: [1.7.10] Won't read mods (Mods do not work!)
This topic has been moved to Support & Bug Reports. [iurl]http://www.minecraftforge.net/forum/index.php?topic=24457.0[/iurl]
-
[1.7.10] Ore gen not working
Try moving the line that declares the WorldGenMinable inside the for loop, so it won't use the same on over and over again.
-
[1.7.10]Crashing when opening custom Container Gui
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.
-
[1.7.10]Crashing when opening custom Container Gui
drawTexturedModalRect only supports 256x256 images. You need to create your own method for other image sizes.
-
[1.7.10] Ore gen not working
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.
-
Custom Crop help 1.7.10
If you crash, post your crash log.
-
Issue with Loop using onBlockAdded [FORGE 1.7.10]
Don't use @SideOnly!!! Use !world.isRemote !
-
Issue with Loop using onBlockAdded [FORGE 1.7.10]
Only modify the world on the server side: !world.isRemote .
-
Mods folder path?
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.
-
rotating model?
Post your model class.
-
[1.7.10] Making a block that you can walk through.
Post your block class.
-
Error when installing Forge: The assetDir is deprecated!
Try using a clean installation of Forge.
-
Error when installing Forge: The assetDir is deprecated!
Update Forge.
-
MOVED: [1.7.10] and Windows 8.1, can't start up server.
This topic has been moved to Support & Bug Reports. [iurl]http://www.minecraftforge.net/forum/index.php?topic=24397.0[/iurl]
-
Can't rune Minecraft from Eclipse!
You might want to look at this thread: [utl]http://www.minecraftforge.net/forum/index.php/topic,24119.0.html[/url]
-
[1.8] TileEntity that holds an Item won't render it after reloading world.
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()
-
How to make a custom ore set trigger OreGenEvent.GenerateMinable.
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.
-
Can't rune Minecraft from Eclipse!
Try the latest version.
-
[1.7.10] feed player
I suggest looking at the FoodStats class. You can get it from EntityPlayer#getFoodStats() .
-
How to get a file from a resourcelocation?
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 .
-
[Not Solved] [1.7.10] Changing Metadata on Keypress
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.
-
Tile entity syncing
In the onDataPacket method, you need call readFromNBT instead of directly calling ItemStack#loadItemStackFromNBT
-
Tile entity syncing
Post your code with the methods TheGreyGhost advised.
IPS spam blocked by CleanTalk.