Posted July 20, 201510 yr Hey guys, again ... I was wondering what method do I use to get the light value from the surrounding environment thanks! if(pain == 0) { gain = 0; }
July 20, 201510 yr 1. Tell US which Version 2. learn how to use ur IDE 3. shd be sth like world#getLightValue
July 20, 201510 yr Author Sorry about that, I am using 1.8 I found out that before but it doesn't work for me, I am trying to get the sky light value for my tile entity but it always returns zero, here is my code: final int SKY_LIGHT_VALUE = tileEntityMoulder.getWorld().getLightFor(EnumSkyBlock.SKY, tileEntityMoulder.getPos()); final int BLOCK_LIGHT_VALUE = 0; OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, SKY_LIGHT_VALUE * 16.0F, BLOCK_LIGHT_VALUE * 16.0F); if(pain == 0) { gain = 0; }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.