Advertisement
jayhillx

ModEntities-1.15.2

Dec 31st, 2020
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. public static void setupEntitySpawns(Biome biome) {
  2. if (biome == ModBiomes.STRAWBERRY_FIELD.get()) {
  3. addEntitySpawn(biome, EntityClassification.CREATURE, new Biome.SpawnListEntry(ModEntities.STRAWBERRY_COW.get(), 12, 2, 4));
  4. }
  5. if (Config.COMMON.strawberryCowBiomes.get().contains(biome.getRegistryName().toString())) {
  6. addEntitySpawn(biome, EntityClassification.CREATURE, new Biome.SpawnListEntry(ModEntities.STRAWBERRY_COW.get(), 10, 2, 4));
  7. }
  8. }
  9.  
  10. private static void addEntitySpawn(Biome biome, EntityClassification entityclassification, Biome.SpawnListEntry spawnlistentry) {
  11. biome.getSpawns(entityclassification).add(spawnlistentry);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement