mojira.dev
MC-309361

Spawner With Custom Spawn Rules setting sky light to include 0 cannot spawn when sky light is 0

Duplicate of MC-307449


What is the issue

Setting a spawner’s Custom Spawn Rules to the following:

{sky_light_limit:[0,15],block_light_limit:[0,15]}
should allow the spawner to spawn in any block light or sky light levels, however the spawner cannot spawn when sky light is 0.

What is Expected

The spawner spawn in a sky light of 0.

How to Reproduce

  • Launch minecraft 26.2 or 26.3 snapshot 1, create a world

  • make sure in night time

  • find or create a place with sky light = 0. Open F3+F6 and display light_levels to see these levels. Or simply create a normal survial world and go to a cave deep under groud.

    • Make sure that all your surrondings have a sky light of 0, since spawners can spawn in a range besides it.

  • Run /setblock ~ ~ ~ spawner{Delay:10s,SpawnData:{entity:{id:"zombie"},custom_spawn_rules:{sky_light_limit:[0,15],block_light_limit:[0,15]}}}

  • Observe that nothing spawn.

Linked issues

Comments 0

No comments.

Dahesor

(Unassigned)

Unconfirmed

26.3 Snapshot 1

Retrieved