Minecraft Blogs / Tutorial

Render Blocks error 1.5+

  • 704 views, 1 today
  • 2
  • 0
  • 2
EdMaxPrime's Avatar EdMaxPrime
Level 21 : Expert Modder
12
Hello guys, if you are like me and are new to modding, and have no idea why you can't run minecraft in eclipse or reobfuscate, then read this. You will see in eclipse that there is an error with RenderBlocks.java and it is a very big class. Well why don't you scroll on down to somewhere around line 4,100 and you should see the error there, if not then do this anyways. Comment out that line like so:

PMCjpg



//return Minecraft.isAmbientOcclusionEnabled() && Block.lightValue[par1Block.blockID] == 0 ? (this.partialRenderBounds ? this.func_102027_b(par1Block, par2, par3, par4, var6, var7, var8) : this.renderStandardBlockWithAmbientOcclusion(par1Block, par2, par3, par4, var6, var7, var8)) : this.renderStandardBlockWithColorMultiplier(par1Block, par2, par3, par4, var6, var7, var8);

That is all one line, and now it should be green. Now there are more errors, so paste this line(this is one line no matter how it is shown here!):



return Minecraft.isAmbientOcclusionEnabled() && Block.lightValue[par1Block.blockID] == 0 ? this.renderStandardBlockWithAmbientOcclusion(par1Block, par2, par3, par4, var6, var7, var8) : this.renderStandardBlockWithColorMultiplier(par1Block, par2, par3, par4, var6, var7, var8);

Put that right above the one you just commented out, but within the closing brackets. Now you have this:

PMCjpg

Now, one thing I forgot to mention. Some of you may still have an error, so go down to approximately line 4,953 and comment out these three lines like so:

renderblocksjpg

And then just save the file. You should be good. This is probably the only case when editing a base class is necessary.

I Don't care if you like this or not, I am just returning a favor to the community for their help. If you diamond that would be nice.

Still don't understand? Message me or write in the comments. I will respond.
Tags

Create an account or sign in to comment.

1
05/18/2013 7:44 pm
Level 21 : Expert Modder
EdMaxPrime
EdMaxPrime's Avatar
Do not download some of those other fixes, they are not compatible for other mcp's for some reason. Just like md5's.
1
05/01/2013 9:49 pm
Level 21 : Expert Modder
EdMaxPrime
EdMaxPrime's Avatar
Diamonds would be nice :) but I am not begging unlike others.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome