Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public IEntityLivingData onInitialSpawn(DifficultyInstance difficulty, @Nullable IEntityLivingData livingdata) {
- World world;
- Biome biome = this.worldObj.getBiome(new BlockPos(this));
- this.getLifeStageHelper().setLifeStage(EnumDragonLifeStage.ADULT);
- if (biome instanceof BiomeHills && this.worldObj.canSeeSky(new BlockPos(this)) && this.rand.nextInt(5) != 5)
- {this.setBreedType(EnumDragonBreed.AMETHYST);}
- else
- if (biome instanceof BiomeHills && this.worldObj.canSeeSky(new BlockPos(this)) && this.rand.nextInt(5) != 0)
- {this.setBreedType(EnumDragonBreed.GARNET);}
- else
- if (biome instanceof BiomeHills && this.worldObj.canSeeSky(new BlockPos(this)) && this.rand.nextInt(5) != 0)
- {this.setBreedType(EnumDragonBreed.JADE);}
- else
- if (biome instanceof BiomeHills && this.worldObj.canSeeSky(new BlockPos(this)) && this.rand.nextInt(5) != 0)
- {this.setBreedType(EnumDragonBreed.SAPPHIRE);}
- else
- if (biome instanceof BiomeHills && this.worldObj.canSeeSky(new BlockPos(this)) && this.rand.nextInt(5) != 0)
- {this.setBreedType(EnumDragonBreed.RUBY);}
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement