Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-264187

Spawners with spawn rule light value less than 15 don't spawn mobs under night sky

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.1, 1.20.2
    • None
    • Community Consensus
    • Mob spawning
    • Normal
    • Platform

      Mobs will not spawn from spawners if the spawners custom spawn rule light value is less than 15 and they are under open sky.  So the block level is 0 and the client screen display is pitch black with stars, the "skylight" value is 15 and blocks spawning.

         
      Then when you put a roof over it, blocking the "skylight", it will begin spawning.

      /setblock ~1 ~1 ~ spawner{SpawnData:{entity:

      {id:"minecraft:skeleton"}

      ,custom_spawn_rules:

      {block_light_limit:[0,14],sky_light_limit:[0,14]}

      }}

       

      This example without custom spawn rules will spawn mobs at night under an open sky.

      /setblock ~1 ~1 ~ spawner{SpawnData:{entity:

      {id:"minecraft:skeleton"}

      }}

       

      The bug is in the BaseSpawner class in the serverTick method.

       

      It should probably use the calculated skylight value adjusted for time of day and weather like normal spawning.

            Unassigned Unassigned
            MacTso stephen m mcleod
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: