Posted May 9, 201411 yr I want my custom block (custom log) to emit light ( setLightLevel(float) ) if certain blocks an near him (not next to, 1, 2, 3, 5,... blocks away), also if the block is "placed" by the world generation (or if placed when a tree is grown), and not if the block is placed by a player. Hope it is possible. Thanks for helping
May 9, 201411 yr There's a method you can override in your block class called getLightValue(IBlockAccess world, int x, int y, int z) Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
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.