Mojira Archive
MC-276451

Monster natural spawning problem with custom light levels

Monsters don't spawn in proper light levels when changing them via a datapack.

How to reproduce:

  • Create a datapack and alter the "dimension_type" (for example: "overworld.json") to the following values:
...
"monster_spawn_block_light_limit": 15,
"monster_spawn_light_level": {
    "type": "minecraft:uniform",
    "max_inclusive": 15,
    "min_inclusive": 10
},
...
  • Load into the game and set up a lit area with light level 10+ under the sky.

Result: monsters don't spawn in that lit area

Note: the monsters will still spawn in light levels below 7 or lower if the area isn't under the sky.

Unresolved

David Tsi

2024-09-06, 06:55 PM

2024-09-10, 07:17 AM

2

2

Community Consensus

Important

Platform

Data Packs, Mob spawning

1.21.1

-