Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. @Override
  2. public IEntityLivingData onInitialSpawn(DifficultyInstance difficulty, @Nullable IEntityLivingData livingdata) {
  3. World world;
  4. Biome biome = this.worldObj.getBiome(new BlockPos(this));
  5. this.getLifeStageHelper().setLifeStage(EnumDragonLifeStage.ADULT);
  6.  
  7. if (biome instanceof BiomeHills && this.worldObj.canSeeSky(new BlockPos(this)) && this.rand.nextInt(5) != 5)
  8. {this.setBreedType(EnumDragonBreed.AMETHYST);}
  9. else
  10. if (biome instanceof BiomeHills && this.worldObj.canSeeSky(new BlockPos(this)) && this.rand.nextInt(5) != 0)
  11. {this.setBreedType(EnumDragonBreed.GARNET);}
  12. else
  13. if (biome instanceof BiomeHills && this.worldObj.canSeeSky(new BlockPos(this)) && this.rand.nextInt(5) != 0)
  14. {this.setBreedType(EnumDragonBreed.JADE);}
  15. else
  16. if (biome instanceof BiomeHills && this.worldObj.canSeeSky(new BlockPos(this)) && this.rand.nextInt(5) != 0)
  17. {this.setBreedType(EnumDragonBreed.SAPPHIRE);}
  18. else
  19. if (biome instanceof BiomeHills && this.worldObj.canSeeSky(new BlockPos(this)) && this.rand.nextInt(5) != 0)
  20. {this.setBreedType(EnumDragonBreed.RUBY);}
  21.  
  22. return null;
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement