Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different light intensity for different states of the same block [Suggestion] #71

Closed
paulevsGitch opened this issue Oct 20, 2023 · 0 comments · Fixed by #72
Closed

Different light intensity for different states of the same block [Suggestion] #71

paulevsGitch opened this issue Oct 20, 2023 · 0 comments · Fixed by #72
Labels
enhancement New feature or request

Comments

@paulevsGitch
Copy link
Contributor

I'm requesting light intensity per blockstate, like in modern. It will make easier many things for blocks that can be on/off like furnaces or for cave plants which are partially glowing

To make it compatible with legacy code it can be done with introducing additional field in Block with type Function<BlockState, Int>, if it is null the block will use values from vanilla array, if it is not null it will be used to get block light value based on its state

@mineLdiver mineLdiver added the enhancement New feature or request label Oct 20, 2023
@mineLdiver mineLdiver linked a pull request Oct 24, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants