17 août 2017, 20:52

Bonjour j’ai suivi ce tutoriel j’ai donc créer mon premier mob mais je n’arrive pas a augmenté ça vitesse j’aimerais un mobs très rapide mais ceci ne fonctionne pas


public class MobSonic extends EntityMob
{
  public MobSonic(World world)
  {
    super(world);
  }

  @Override
  public void applyEntityAttributes()
  {
    super.applyEntityAttributes();
    this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(30.0D);
    this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(0.0D);
    this.getEntityAttribute(SharedMonsterAttributes.knockbackResistance).setBaseValue(0.0D);
    this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(5.0D);
    setSize(2.0F, 1.0F);
  }
}

Pourtant j’ai bien mis la fonction SharedMonsterAttributes.movementSpeed à 5.0D