Finished Turkey
This commit is contained in:
parent
97557cdbe8
commit
87d267869a
6 changed files with 14 additions and 10 deletions
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
@ -120,7 +120,7 @@ public class FarmTech extends ModPrefab
|
|||
Item.egg = new ItemFarmEgg(88);
|
||||
GameRegistry.registerItem(Item.egg, "FTEgg", MOD_ID);
|
||||
EntityRegistry.registerGlobalEntityID(EntityFarmEgg.class, "FarmEgg", EntityRegistry.findGlobalUniqueEntityId());
|
||||
EntityRegistry.registerModEntity(EntityFarmEgg.class, "FarmEgg", 60, this, 64, 1, true);
|
||||
EntityRegistry.registerModEntity(EntityFarmEgg.class, "FarmEgg", entitiesIds++, this, 64, 1, true);
|
||||
BlockDispenser.dispenseBehaviorRegistry.putObject(Item.egg, new BehaviorDispenseEgg());
|
||||
}
|
||||
|
||||
|
|
|
@ -134,6 +134,7 @@ public class ModelTurkey extends ModelBase
|
|||
this.chin.render(par7);
|
||||
this.body.render(par7);
|
||||
this.body2.render(par7);
|
||||
this.fan.render(par7);
|
||||
this.rightLeg.render(par7);
|
||||
this.leftLeg.render(par7);
|
||||
this.rightWing.render(par7);
|
||||
|
@ -156,10 +157,10 @@ public class ModelTurkey extends ModelBase
|
|||
this.bill.rotateAngleY = this.head.rotateAngleY;
|
||||
this.chin.rotateAngleX = this.head.rotateAngleX;
|
||||
this.chin.rotateAngleY = this.head.rotateAngleY;
|
||||
this.body.rotateAngleX = ((float)Math.PI / 2F);
|
||||
this.body2.rotateAngleX = ((float)Math.PI / 2F);
|
||||
this.fan.rotateAngleX = ((float)Math.PI / 2F);
|
||||
this.neck.rotateAngleX = ((float)Math.PI / 2F);
|
||||
//this.body.rotateAngleX = ((float)Math.PI / 2F);
|
||||
//this.body2.rotateAngleX = ((float)Math.PI / 2F);
|
||||
//this.fan.rotateAngleX = ((float)Math.PI / 2F);
|
||||
//this.neck.rotateAngleX = ((float)Math.PI / 2F);
|
||||
this.rightLeg.rotateAngleX = MathHelper.cos(par1 * 0.6662F) * 1.4F * par2;
|
||||
this.leftLeg.rotateAngleX = MathHelper.cos(par1 * 0.6662F + (float)Math.PI) * 1.4F * par2;
|
||||
this.rightWing.rotateAngleZ = par3;
|
||||
|
|
|
@ -55,7 +55,7 @@ public class EntityTurkey extends EntityAnimal
|
|||
protected void applyEntityAttributes()
|
||||
{
|
||||
super.applyEntityAttributes();
|
||||
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setAttribute(4.0D);
|
||||
this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setAttribute(6.0D);
|
||||
this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setAttribute(0.25D);
|
||||
}
|
||||
|
||||
|
@ -151,6 +151,7 @@ public class EntityTurkey extends EntityAnimal
|
|||
{
|
||||
this.dropItem(Item.feather.itemID, 1);
|
||||
}
|
||||
|
||||
|
||||
if (this.isBurning())
|
||||
{
|
||||
|
@ -173,7 +174,7 @@ public class EntityTurkey extends EntityAnimal
|
|||
@Override
|
||||
public EntityAgeable createChild(EntityAgeable par1EntityAgeable)
|
||||
{
|
||||
return new EntityChicken(this.worldObj);
|
||||
return new EntityTurkey(this.worldObj);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package dark.farmtech.entities;
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EnumCreatureType;
|
||||
import net.minecraft.entity.passive.EntityChicken;
|
||||
|
@ -34,9 +36,9 @@ public enum EnumBird
|
|||
@Override
|
||||
public void register()
|
||||
{
|
||||
EntityRegistry.registerGlobalEntityID(EntityTurkey.class, "FTTurkey", EntityRegistry.findGlobalUniqueEntityId());
|
||||
EntityRegistry.registerModEntity(EntityTurkey.class, "FTTurkey", FarmTech.entitiesIds++, this, 64, 1, true);
|
||||
EntityRegistry.addSpawn(EntityTurkey.class, 3, 1, 3, EnumCreatureType.creature, BiomeGenBase.forest, BiomeGenBase.river);
|
||||
EntityRegistry.registerGlobalEntityID(EntityTurkey.class, "FTTurkey", EntityRegistry.findGlobalUniqueEntityId(), 5651507, Color.red.getRGB());
|
||||
EntityRegistry.registerModEntity(EntityTurkey.class, "FTTurkey", FarmTech.entitiesIds++, FarmTech.instance, 64, 1, true);
|
||||
EntityRegistry.addSpawn(EntityTurkey.class, 3, 1, 10, EnumCreatureType.creature, BiomeGenBase.forest, BiomeGenBase.river);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue