Creation d'un mob simple (En Rédaction 85%)

Bonjour, J'ai un petit problème.:)
Je m'explique j'ai suivi ton tuto elias54 pour que mon mob tienne un item(ou un block)
J'ai rajouter le code, aucune erreur et pourtant ils n'ont rien dans les mains :mad:

Voila mon Entity :

Code:
package net.minecraft.src;
 
import java.util.Random;
 
public class EntityBandit extends EntityMob{
 
    public EntityBandit(World world){
        super(world);
        texture = "/Mesmobs/Bandit.png";
        setSize(4F, 4F);
        attackStrength = 4;
    }
 
    public int getMaxHealth(){
        return 20;
    }
 
    protected int func_40119_ar(){
        return 2;
    }
 
    public void onLivingUpdate(){
        super.onLivingUpdate();
    }
 
    protected String getLivingSound(){
        return "mob.skeleton";
    }
 
    protected String getHurtSound(){
        return "note.snare";
    }
 
    protected String getDeathSound(){
        return "random.explode";
    }
 
 
    protected int getDropItemId(){
      return Item.leather.shiftedIndex;
    }
 
    public EnumCreatureAttribute func_40124_t(){
        return EnumCreatureAttribute.UNDEFINED;
     
        }
    public ItemStack getHeldItem()
    {
        return defaultHeldItem;
    }
 
        private static final ItemStack defaultHeldItem;
 
        static
    {
        defaultHeldItem = new ItemStack(Item.axeStone, 1);
    }
 
 
 
    protected Entity findPlayerToAttack()
    {
        EntityPlayer entityplayer = worldObj.getClosestPlayerToEntity(this, 16D);
        if(entityplayer != null && canEntityBeSeen(entityplayer))
        {
            return entityplayer;
        } else
        {
            return null;
        }
    }}


Merci a ceux qui me repondront :D
 
Mdr moi pour l'instant j'ai que sa qui m'énerve ^^
Enfin j'essaye de créer un mob Géant genre un Titan :rolleyes:
Mais c'est pas si simple :'( ^^
 
Moi je fais un mod pour la communauté des reclus de se forum. Et donc je dois faire un narwhal pour un pote. Ta réussi ton render?
 
Ah ouais ^^ (Un narwhal c'est bizarre comme animal sa, qui voudrais d'un tel "animal" :eek:)
Bref bah pour l'item je cherche d'autres tutorials mais sans succès.
Et pour la taille je chercher toujours ^^

Bonne chance pour ton narwhal ^^
 
Voila mon ModelBIPED ;)

Code:
package net.minecraft.src;
 
public class ModelRogue extends ModelBase
{
  public    ModelRogue()
  {
      Head = new ModelRenderer(this,0, 0);
      Head.addBox(-4, -8, -4, 10, 10, 8);
      Head.setRotationPoint(0, 0, 2);
 
      Head.rotateAngleX = 0F;
      Head.rotateAngleY = 0F;
      Head.rotateAngleZ = 0F;
 
      Body = new ModelRenderer(this,16, 16);
      Body.addBox(0, 0, 0, 15, 8, 12);
      Body.setRotationPoint(-4, 0, 0);
 
      Body.rotateAngleX = 0F;
      Body.rotateAngleY = 0F;
      Body.rotateAngleZ = 0F;
 
      LeftLeg = new ModelRenderer(this,0, 16);
      LeftLeg.addBox(-2, 0, -2, 0, 4, 12);
      LeftLeg.setRotationPoint(2, 12, 2);
 
      LeftLeg.rotateAngleX = 0F;
      LeftLeg.rotateAngleY = 0F;
      LeftLeg.rotateAngleZ = 0F;
 
      RightLeg = new ModelRenderer(this,0, 16);
      RightLeg.addBox(-2, 0, -2, 0, 4, 12);
      RightLeg.setRotationPoint(-2, 12, 2);
 
      RightLeg.rotateAngleX = 0F;
      RightLeg.rotateAngleY = 0F;
      RightLeg.rotateAngleZ = 0F;
 
      Leftarm = new ModelRenderer(this,40, 16);
      Leftarm.addBox(0, 0, -2, 0, 4, 12);
      Leftarm.setRotationPoint(4, 0, 2);
 
      Leftarm.rotateAngleX = 0F;
      Leftarm.rotateAngleY = 0F;
      Leftarm.rotateAngleZ = 0F;
 
      RigthArm = new ModelRenderer(this,40, 16);
      RigthArm.addBox(-4, 0, -2, 0, 4, 12);
      RigthArm.setRotationPoint(-4, 0, 2);
 
      RigthArm.rotateAngleX = 3F;
      RigthArm.rotateAngleY = 0F;
      RigthArm.rotateAngleZ = 0F;
 
 
  }
 
  public void render(float f, float f1, float f2, float f3, float f4, float f5)
  {
      setRotationAngles(f, f1, f2, f3, f4, f5);
      Head.render(f5);
      Body.render(f5);
      LeftLeg.render(f5);
      RightLeg.render(f5);
      Leftarm.render(f5);
      RigthArm.render(f5);
 
  }
 
  public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
  {
      super.setRotationAngles(f, f1, f2, f3, f4, f5);
  }
 
  //fields
  public ModelRenderer Head;
  public ModelRenderer Body;
  public ModelRenderer LeftLeg;
  public ModelRenderer RightLeg;
  public ModelRenderer Leftarm;
  public ModelRenderer RigthArm;
 
}



Et le Render :

Code:
package net.minecraft.src;
import org.lwjgl.opengl.GL11;
 
public class RenderRogue extends RenderLiving
{
 
protected void preRenderScale(EntityBandit entity, float f)
{
GL11.glScalef(2F, 2F, 2F);
}
 
public RenderRogue(ModelRogue modelbase, float f)
{
super(modelbase, f);
}
 
 
public void renderRogue(EntityBandit entitybandit, double d, double d1, double d2,
float f, float f1)
{
super.doRenderLiving(entitybandit, d, d1, d2, f, f1);
}
 
public void doRenderLiving(EntityLiving entityliving, double d, double d1, double d2,
float f, float f1)
{
renderRogue((EntityBandit)entityliving, d, d1, d2, f, f1);
}
 
public void doRender(Entity entity, double d, double d1, double d2,
float f, float f1)
{
renderRogue((EntityBandit)entity, d, d1, d2, f, f1);
}
}