Posted May 11, 20214 yr How do you remove the shadows from a custom block that is a light source? The block in the picture has a light level of 6, and it emits light, but it has an odd shadow.
May 12, 20214 yr 22 hours ago, MakeItSimple said: How do you remove the shadows from a custom block that is a light source? The block in the picture has a light level of 6, and it emits light, but it has an odd shadow. Last I tried, overriding the getAmbientOcclusionLightValue() method (called getShadeBrightness() in the official mappings) did the trick.
May 23, 20214 yr 11 hours ago, MakeItSimple said: It still has a shadow. Do you mind giving an example? What exactly did you try? For me, this does the trick: @Override public float getAmbientOcclusionLightValue(BlockState state, IBlockReader worldIn, BlockPos pos) { return 1; }
May 28, 20214 yr Author public class LightBlock extends Block{ public LightBlock(AbstractBlock.Properties properties) { super(properties); } @Override public float getAmbientOcclusionLightValue(BlockState state, IBlockReader worldIn, BlockPos pos) { return 1; } } The above code still gives the same shadow.
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.