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

En haut de ton model y'a ecris --> public class ModelRogue extends ModelBase

Remplace ModelBase par ModelBiped :)
 
Je veux pas paraître lourd, mais j'ai remplacer Modelbase ===>ModelBiped
Et pourtant je ne vois toujours pas l'item :s

Je te remet mes fichiers

Model :
Code:
package net.minecraft.src;
 
public class ModelHoplite extends ModelBiped
{
  //fields
    ModelRenderer head;
    ModelRenderer body;
    ModelRenderer rightarm;
    ModelRenderer leftarm;
    ModelRenderer rightleg;
    ModelRenderer leftleg;
 
  public ModelHoplite()
  {
    textureWidth = 64;
    textureHeight = 32;
 
      head = new ModelRenderer(this, 0, 0);
      head.addBox(-4F, -8F, -4F, 8, 8, 8);
      head.setRotationPoint(0F, 0F, 0F);
      head.setTextureSize(64, 32);
      head.mirror = true;
      setRotation(head, 0F, 0F, 0F);
      body = new ModelRenderer(this, 16, 16);
      body.addBox(-4F, 0F, -2F, 8, 12, 4);
      body.setRotationPoint(0F, 0F, 0F);
      body.setTextureSize(64, 32);
      body.mirror = true;
      setRotation(body, 0F, 0F, 0F);
      rightarm = new ModelRenderer(this, 40, 16);
      rightarm.addBox(-3F, -2F, -2F, 4, 12, 4);
      rightarm.setRotationPoint(-5F, 2F, 0F);
      rightarm.setTextureSize(64, 32);
      rightarm.mirror = true;
      setRotation(rightarm, 0F, 0F, 0F);
      leftarm = new ModelRenderer(this, 40, 16);
      leftarm.addBox(-1F, -2F, -2F, 4, 12, 4);
      leftarm.setRotationPoint(5F, 2F, 0F);
      leftarm.setTextureSize(64, 32);
      leftarm.mirror = true;
      setRotation(leftarm, 0F, 0F, 0F);
      rightleg = new ModelRenderer(this, 0, 16);
      rightleg.addBox(-2F, 0F, -2F, 4, 12, 4);
      rightleg.setRotationPoint(-2F, 12F, 0F);
      rightleg.setTextureSize(64, 32);
      rightleg.mirror = true;
      setRotation(rightleg, 0F, 0F, 0F);
      leftleg = new ModelRenderer(this, 0, 16);
      leftleg.addBox(-2F, 0F, -2F, 4, 12, 4);
      leftleg.setRotationPoint(2F, 12F, 0F);
      leftleg.setTextureSize(64, 32);
      leftleg.mirror = true;
      setRotation(leftleg, 0F, 0F, 0F);
  }
 
  public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
  {
    super.render(entity, f, f1, f2, f3, f4, f5);
    setRotationAngles(f, f1, f2, f3, f4, f5);
    head.render(f5);
    body.render(f5);
    rightarm.render(f5);
    leftarm.render(f5);
    rightleg.render(f5);
    leftleg.render(f5);
  }
 
  private void setRotation(ModelRenderer model, float x, float y, float z)
  {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
  }
 
  public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
  {
    super.setRotationAngles(f, f1, f2, f3, f4, f5);
  }
}


Render :
Code:
package net.minecraft.src;
 
public class RenderHoplite extends RenderLiving
{
 
    public RenderHoplite(ModelBase modelbase, float f)
    {
        super(modelbase, f);
    }
 
    public void renderHoplite(EntityHoplite entityHoplite, double d, double d1, double d2,
            float f, float f1)
    {
        super.doRenderLiving(entityHoplite, d, d1, d2, f, f1);
    }
 
    public void doRenderLiving(EntityLiving entityliving, double d, double d1, double d2,
            float f, float f1)
    {
        renderHoplite((EntityHoplite)entityliving, d, d1, d2, f, f1);
    }
 
    public void doRender(Entity entity, double d, double d1, double d2,
            float f, float f1)
    {
        renderHoplite((EntityHoplite)entity, d, d1, d2, f, f1);
    }
}



Entity :
Code:
package net.minecraft.src;
 
public class EntityHoplite extends EntityMob
{
 
    public EntityHoplite(World world)
    {
        super(world);
        texture = "/Mesmobs/hoplite.png";
        moveSpeed = 0.9F;
        attackStrength = 3;
 
    }
    public int getMaxHealth(){
        return 25;
         
        }
 
    public EntityHoplite(World world, double d, double d1, double d2, float f)
    {
        this(world);
        setPosition(d, d1 + 1.0F, d2);
        motionX = 0.0D;
        motionY = 0.0D;
        motionZ = 0.0D;
        prevPosX = d;
        prevPosY = d1;
        prevPosZ = d2;
    }
 
    public void writeEntityToNBT(NBTTagCompound nbttagcompound)
    {
        super.writeEntityToNBT(nbttagcompound);
    }
 
    public void readEntityFromNBT(NBTTagCompound nbttagcompound)
    {
        super.readEntityFromNBT(nbttagcompound);
    }
 
    protected String getLivingSound()
    {
        return "mob.cow";
    }
 
    protected String getHurtSound()
    {
        return "mob.cowhurt";
    }
 
    protected String getDeathSound()
    {
        return "mob.cowhurt";
    }
 
    protected float getSoundVolume()
    {
        return 0.4F;
    }
 
    protected int getDropItemId()
    {
        return Item.leather.shiftedIndex;
    }
    public ItemStack getHeldItem()
    {
        return defaultheldItem;
    }
 
        private static final ItemStack defaultheldItem;
 
        static
    {
        defaultheldItem = new ItemStack(Item.swordWood, 1);
    }
}

Merci ;)
 
Je ne saurai t'aider. désolé.
Mais comment sait tu se qu'il faut mettre dans le render?
 
Euh.....:mobcreeper:
Je comprends pas tout...
Pourrais tu m'aider à la création de mes 4 mobs
pour beer'n'sword si je te passe les coordonnées en "Langage naturel".
 
Raeven, ma question était comment comprends-tu se qu'il faut mettre dans ton Render?

Non j'ai compris. ^^ pb de f*** ";"

Parcontre elias tu pourrais m'expliquer, mon mob est invisible lorsqu'il spawn (à partir d'un oeuf. car je ne vois pas si il spawn)
 
Alv0iD, ton soucis d' invisiblité vient du render ;) Et tu dois le recommencer ^^ (du moins c'est ce que j'ai fait quand j'ai rencontrer ce genre de problème. :)
 
je voudrais bien , mais mon probleme avec le reder, c'est que je ne comprend pas se que je marque ^^

Je l'ai réécris mais, aucun changement.