PaperMC / PaperMC/Paper

Max Light Level monster spawn

Open
#10,265 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: accepted type: bug upstream: vanilla
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

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?

https://github.com/PaperMC/Paper/pull/7129

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading pull request #7129, which introduced the max-light setting, then reproduce the issue with the server set to day and max-light set to 15 or higher. Done means mobs spawn when the light level is less than or equal to the configured maximum, rather than only at vanilla light level 0.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.