BiomeTweaker icon indicating copy to clipboard operation
BiomeTweaker copied to clipboard

forBiomesWithProperty

Open Petrisis opened this issue 4 years ago • 1 comments

hi there, thanks for doing this mod! id like to replace cows, pigs, sheeps and chickens with their evil counterpart from abyssalcraft.

i could simply remove all vanilla spawns with forAllBiomes().removeSpawn. sure. but how to add the evil animals only to biomes where good ones spawned before?

i thought to come by with forBiomesWithPropertyRange(String property, int min, int max) but dont know if i can aim with the string property onto "Spawnable Creatures": [ { "Entity Class": "net.minecraft.entity.passive.EntitySheep", "Weight": 12, "Min Group Count": 4, "Max Group Count": 4 }, to replace this entity with another class named "com.shinoow.abyssalcraft.common.entity.demon.EntityEvilSheep". Could you make an example if there is a way?

Petrisis avatar Apr 14 '20 10:04 Petrisis

This is an interesting suggestion. I'll look into a way to do something like this.

superckl avatar May 02 '20 21:05 superckl