mojira.dev
MC-245774

Spawner custom light limit rules does not support multiple spawn potentials

Command to reproduce in a command block with light: 

/setblock ~ ~1 ~ spawner{SpawnData:{entity:{id:"minecraft:creeper"},custom_spawn_rules:{sky_light_limit:{min_inclusive:0,max_inclusive:15},block_light_limit:{min_inclusive:0,max_inclusive:15}}},SpawnPotentials:[{weight:1,custom_spawn_rules:{sky_light_limit:{min_inclusive:0,max_inclusive:15},block_light_limit:{min_inclusive:0,max_inclusive:15}},data:{entity:{id:"minecraft:creeper"}}},{weight:1,custom_spawn_rules:{sky_light_limit:{min_inclusive:0,max_inclusive:15},block_light_limit:{min_inclusive:0,max_inclusive:15}},data:{entity:{id:"minecraft:husk"}}}]} replace

 

Expected outcome: spawn both of those mobs with light rules

Comments 2

And what is actual outcome?

This bug report can be closed now. I found out my command in the description is setup wrong from a command generator website. The example in 1.18 change log works.

willninjagamer

(Unassigned)

Unconfirmed

(Unassigned)

Commands, Spawner

1.18.1

Retrieved