-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Max Light Level monster spawn #10265
Comments
Basically, the config value right now only overwrites I am unsure if this is intended behavior, but the concept (if intended) would need further description at least in the docs. |
This is directly configurable with datapacks, just by setting Either way, I do not think the existing setting should be changed, its initial behavior seems correct, only controlling the block light level, not the ambient light level from the sky. |
The issue is not just I checked the code, and it seems like the problem is (NMS) The order of calling:
The last one, in the Overworld, yields the current light level at a location (sky and block) divided by the max light level (15), and going up this needs to be 0.5 or more to spawn the monster, which only happens when the combined light level is 7.5 or less, i.e. 7-. Edit: this might not be 100% right, because it seems that monsters DO spawn in higher light levels when changed (with a datapack) but ONLY when not directly under the sky (i.e. blocks above). This doesn't explain why they spawn in ALL light levels even though the range was set to be 12-15... |
This should be a vanilla issue then correct? Did you search on the mojira tracker to see if you could find one? |
Yes, just tested and same behavior in vanilla as well. Edit: create a ticket just in case. |
Expected behavior
Mobs should spawn if light level is below or equals to configured light level.
Observed/Actual behavior
Entities only spawn at night with a vanilla (0) light level
Steps/models to reproduce
Time set day
Set server max-light setting to 15 or greater
Plugin and Datapack List
No plugin
Paper version
Latest
Other
Here was the pull request that created that feature.
Regarding our recent discord discussion, it's appear to be bugged?
#7129
The text was updated successfully, but these errors were encountered: