
Setting a limpet's `spawnWeight` to 0 results in a crash
Closed this issue ยท 0 comments
I was trying to disable coal limpe by overwriting their files in my own datapack, since the dimension they spawn in in my modpack does not have coal.
{
"id": "species:coal",
"item": "minecraft:coal",
"block": "minecraft:coal_ore",
"maxCount": 0,
"spawnWeight": 0
}
java.lang.IllegalArgumentException: Bound must be positive
at net.minecraft.world.level.levelgen.BitRandomSource.m_188503_(BitRandomSource.java:22) ~[client-1.20.1-20230612.114412-srg.jar%23598!/:?]
at com.ninni.species.server.data.LimpetOreManager.chooseWeightedVariant(LimpetOreManager.java:125) ~[species-3.3.jar%23561!/:3.3]
at com.ninni.species.server.data.LimpetOreManager.setOre(LimpetOreManager.java:101) ~[species-3.3.jar%23561!/:3.3]
at com.ninni.species.server.entity.mob.update_1.Limpet.m_6518_(Limpet.java:93) ~[species-3.3.jar%23561!/:3.3]
This was before I remembered that you could exclude things in datapacks, but I figured it'd be good to report it anyway.