Posted January 11, 20241 yr Is there a way to check if the player is on a shadow or dark place? The only option i could come up with is to check if there's a block above the player, but i want to know if there's better options.
January 15, 20241 yr if you have a location (BlockPos type, get it from your entity) and a world (Level, also available in any entity), ask the world for light level at that location. you can also ask if the "block" at location can see the sky, etc.
January 15, 20241 yr Author 11 hours ago, MFMods said: if you have a location (BlockPos type, get it from your entity) and a world (Level, also available in any entity), ask the world for light level at that location. you can also ask if the "block" at location can see the sky, etc. that's a great idea, thanks! I'll try that.
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.