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

Trial spawners ignore custom_spawn_rules

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w04a
    • 23w45a, 1.20.3 Pre-Release 1, 1.20.3 Pre-Release 2, 1.20.3 Pre-Release 4, 1.20.3 Release Candidate 1, 1.20.3, 1.20.4, 23w51b
    • None
    • Confirmed
    • Survival
    • Mob spawning
    • Normal
    • 1141842
    • Expansion B

      The Bug

      Trial spawners ignore light levels when spawning mobs even when using the custom_spawn_rules tag to override the light level requirements.

      To reproduce

      Create a trial spawner with block light limit 10-15 (higher than spawner's max of 8):

       

      /setblock ~ ~ ~ minecraft:trial_spawner{spawn_potentials:[{weight:1,data:{entity:{id:"minecraft:zombie"},custom_spawn_rules:{block_light_limit:{min_inclusive:10,max_inclusive:15}}}}]}

       

      Place the spawner in a place with no block light.

      Expected Result

      The spawner would not spawn mobs because the light level is not within 10-15.

      Observed Result

      The spawner spawns mobs.

            Unassigned Unassigned
            Tis_awesomeness Tis_awesomeness
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: