Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void setupEntitySpawns(Biome biome) {
- if (biome == ModBiomes.STRAWBERRY_FIELD.get()) {
- addEntitySpawn(biome, EntityClassification.CREATURE, new Biome.SpawnListEntry(ModEntities.STRAWBERRY_COW.get(), 12, 2, 4));
- }
- if (Config.COMMON.strawberryCowBiomes.get().contains(biome.getRegistryName().toString())) {
- addEntitySpawn(biome, EntityClassification.CREATURE, new Biome.SpawnListEntry(ModEntities.STRAWBERRY_COW.get(), 10, 2, 4));
- }
- }
- private static void addEntitySpawn(Biome biome, EntityClassification entityclassification, Biome.SpawnListEntry spawnlistentry) {
- biome.getSpawns(entityclassification).add(spawnlistentry);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement