mojira.dev
MC-266707

Trial spawners ignore custom_spawn_rules

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}}}}]}
/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.

Comments 0

No comments.

Tis_awesomeness

(Unassigned)

1141842

Confirmed

Expansion B

Normal

Mob spawning

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

24w04a

Retrieved