public int quantityDropped(int meta, int fortune, Random rand)
{
if (fortune > 0 && Item.getItemFromBlock(this) != this.getItemDropped(meta, rand, fortune))
{
int j = rand.nextInt(fortune + 2) - 1;
if (j < 0)
{
j = 0;
}
return this.quantityDropped(rand) * (j + 1);
}
else
{
return this.quantityDropped(rand);
}
}
Avec un minimum de recherche tu aurai pu voir que j’ai déjà donné la solution ici : http://www.minecraftforgefrance.fr/showthread.php?tid=1679
De plus tout ce qui concerne la programmation va dans la section support pour les moddeurs, c’est écrit noir sur blanc dans la description de la section ….
Je déplace dans la bonne section.