Adds simple roosters to Minecraft. Code editing was needed.
CURRENT FEATURES:
- ROOSTER
- Roosters spawn in the world in most of the biomes where chickens spawn.
- Wild Roosters can be tamed!
- Wild Roosters are aggresive to other roosters.
- Now you need a Chicken and a Tamed Rooster to raise chickens.
- Roosters protect their hens from Ocelots.
PLANNED FEATURES:
None! This mod is supposed to add simple roosters to Minecraft. Updates will only occur when a bug is detected.
v 1.4.1 - Initial Official Release
v 1.5.1 - Reduced Probability to spawn Roosters when breeding.
v 1.5.2 - Reduced probability of taming for roosters. (Yeah, roosters are harder to tame now)
v 1.6.1 - Roosters will protect you now!
v 1.6.2 - Fixed bug roosters won't enter through doors
v 1.6.3 - Roosters will no longer defend you, as they had a bug where they attacked hens.
- New EntityAIRoosterSit, based on EntityAIOcelotSit to make Roosters sit on (currently oak) fences
v 1.6.4 - Reduced size of rooster's collisionbox
v 1.7 - Reduced probability of having a rooster when breeding (yes, again)
v 1.7.3 - Added new sound effects to roosters:
- Taming sound (from parrots)
- Crowing Sound in the morning!!!
v 1.7.4 - Fixed bug roosters won't attack ocelots
First, delete the ageInTicks part at the wings part in setRotationAngles. Then check the EntityChicken and RenderChicken code. Add the rotation variables and the onLivingUpdate from EntityChicken (except by the egg laying part) to your mob code.
Then, add this to your model code:
public void setLivingAnimations(EntityLivingBase entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTickTime) {
<your entity> livingBase = (<your entity>) entitylivingbaseIn;
float f = livingBase.oFlap + (livingBase.wingRotation - livingBase.oFlap) * partialTickTime;
float f1 = livingBase.oFlapSpeed + (livingBase.destPos - livingBase.oFlapSpeed) * partialTickTime;
rightWing.rotateAngleZ = (MathHelper.sin(f) + 1.0F) * f1;
leftWing.rotateAngleZ = -((MathHelper.sin(f) + 1.0F) * f1);
}
You should do mods for Bulls, Rams, Boars, Stallions, Jacks (male donkeys, mules, and hinnies), Bucks (male rabbits), Dogs, Cats, and Studs (male llamas)