addSpawn not working
thekazador opened this issue ยท 13 comments
i want to add monsters and creatures to my new biome (deep ocean) and this dont work:
waterBiome = forBiomes(24)
waterBiome.set("name","WaterWorld")
waterBiome.set("temperature", 0.8)
waterBiome.set("actualFillerBlock","minecraft:bedrock")
waterBiome.set("enableRain", true)
waterBiome.addSpawn("net.minecraft.entity.passive.EntitySheep", "CREATURE", 12, 4, 4)
waterBiome.addSpawn("net.minecraft.entity.passive.EntityPig", "CREATURE", 10, 4, 4)
waterBiome.addSpawn("net.minecraft.entity.passive.EntityChicken", "CREATURE", 10, 4, 4)
waterBiome.addSpawn("net.minecraft.entity.passive.EntityCow", "CREATURE", 8, 4, 4)
waterBiome.addSpawn("net.minecraft.entity.monster.EntitySpider", "MONSTER", 60, 4, 4)
waterBiome.addSpawn("net.minecraft.entity.monster.EntityZombie", "MONSTER", 100, 4, 4)
waterBiome.addSpawn("net.minecraft.entity.monster.EntitySkeleton", "MONSTER", 70, 4, 4)
waterBiome.addSpawn("net.minecraft.entity.monster.EntityCreeper", "MONSTER", 40, 4, 4)
waterBiome.addSpawn("net.minecraft.entity.monster.EntityEnderman", "MONSTER", 20, 4, 4)
waterBiome.addSpawn("net.minecraft.entity.monster.EntityWitch", "MONSTER", 10, 4, 4)
Fixing this would require overhauling a portion of the spawning code, something I'm not going to do with BiomeTweaker. I'm going to consider it as an unfortunate side effect.
another test, i just set the liquidFillerBlock to grass like you and the creatures (pig, cow, sheeps) spawn when the biome generate, but monsters dont, i think the problems is the generation over time when they can spawn, only spawn when the biome is created.
remember, the biome is ocean so maybe the problems is with this biome, i really need ocean biome for this purpose or another biome like flat with Y:5=bedrock Y:6-50=water and mobs creatures can spawn over the water in grass like the picture.
I can definitively confirm hostile mobs are spawning regularly. I have yet to see a passive mob spawn while I wan in the world though. I've asked @jadedcat if she can confirm passive mobs can spawn in the ocean, as she has done this in AG2.
ok the problem is the grass Y position, like your picture, we have to put the grass two blocks aver the water or they dont spawn, really thx, btw..... this cannot be?
I'll look into this more. What you describe seems to be the case and explains why it works in AG2. I'll let you know when I have more information.
I've done some more testing. I've confirmed that hostile mobs can spawn on grass that is at least one block above the water, but I have not seen any on the same level as the water.
I have yet to see a single passive mob spawn... It's strange because I've been playing AG2 lately, and JadedCat has nearly the same script. Mobs do spawn in ocean biomes in that pack, given that there is no actual water. This leads me to believe the cause is the water, but I can't pick out anything in the spawning code. I'll keep testing. Anything you can try out helps a bunch.