Advertisement
Guest User

sad

a guest
Jul 2nd, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 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) != 0)
  8. {this.setBreedType(EnumDragonBreed.GARNET);}else
  9. {this.setBreedType(EnumDragonBreed.AMETHYST);}
  10. return livingdata;
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement