Here is my code, any help would be greatly appreciated, thanks!
EntitySoldier
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
public class EntitySoldier extends EntityAnimal
{
public EntitySoldier(World world)
{
super(world);
texture = "/mob/char.png"; // this initializes the texture used for the mob.
setSize(1.5F, 1.9F); // this sets the HIT AREA of the mob.
}
public void writeEntityToNBT(NBTTagCompound nbttagcompound)
{
super.writeEntityToNBT(nbttagcompound); // this saves the mob to disk, so it can be loaded later
}
public void readEntityFromNBT(NBTTagCompound nbttagcompound)
{
super.readEntityFromNBT(nbttagcompound); // this retrieves saved data about the mob from the hard drive
}
protected int getDropItemId()
{
return 278; // this is the drop item ID for your mob. For example, set this to "return 278;" to drop a diamond pickaxe upon dying.
}
}
mod_Soldier
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
import java.util.*;
import java.util.Map;
public class mod_Soldier extends BaseMod
{
public mod_Soldier()
{
ModLoader.RegisterEntityID(EntitySoldier.class, "Soldier", ModLoader.getUniqueEntityId()); // this registers the mob's ID, making it spawnable in-game
ModLoader.AddSpawn(EntitySoldier.class, 2, EnumCreatureType.creature); // this adds the mob to the list of "to-spawn" mobs. The "2" is the rarity of the mob. The EnumCreatureType is what kind of mob it is. For example, squids are "waterCreature", enemies are "monster", and animals are "creature".
}
// RENDERERS
public void AddRenderer(Map map)
{
map.put(EntitySoldier.class, new RenderSoldier(new ModelSoldier(), 0.5F)); // this assigns the Entity class to the appropriate renderer and model class.
}
public String Version()
{
return "| PROWNE's Mob Tutorial Test File for Beta 1.4_01!"; // you can put whatever you want here, it will show up in ModLoader logs.
}
}
ModelSoldier
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
public class ModelSoldier extends ModelBiped
{
public ModelSoldier()
{
}
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
{
super.setRotationAngles(f, f1, f2, f3, f4, f5); // this calls the EXTENDED setRotationAngles function, it is used to animate the legs and head.
}
}
RenderSoldier
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
public class RenderSoldier extends RenderBiped
{
public RenderSoldier(ModelBase modelbase, float f)
{
super(modelbase, f); // try not to modify anything here, except the referenced class names, for example, "EntityTiger".
}
public void func_177_a(EntitySoldier entitysoldier, double d, double d1, double d2,
float f, float f1)
{
super.doRenderLiving(entitysoldier, d, d1, d2, f, f1);
}
public void doRenderLiving(EntityLiving entityliving, double d, double d1, double d2,
float f, float f1)
{
func_177_a((EntitySoldier)entityliving, d, d1, d2, f, f1);
}
public void doRender(Entity entity, double d, double d1, double d2,
float f, float f1)
{
func_177_a((EntitySoldier)entity, d, d1, d2, f, f1);
}
}
http://i.imgur.com/r5ap5.png
Here is my code, any help would be greatly appreciated, thanks!
EntitySoldier
mod_Soldier
ModelSoldier
RenderSoldier