16 juil. 2015, 19:15

Je veux bien avoir la “pacience” comme tu dis 😉 .

Tu ne fais pas spawner ton minerai plus souvent que le diamant, voici le code pour le diamant :

this.diamondGen = new WorldGenMinable(Blocks.diamond_ore, 7);

et la génération :
this.genStandardOre1(1, this.diamondGen, 0, 16);
qui appelle cette fonction :
/**
* Standard ore generation helper. Generates most ores.
*/
protected void genStandardOre1(int p_76795_1_, WorldGenerator p_76795_2_, int p_76795_3_, int p_76795_4_)
{
for (int l = 0; l < p_76795_1_; ++l)
{
int i1 = this.chunk_X + this.randomGenerator.nextInt(16);
int j1 = this.randomGenerator.nextInt(p_76795_4_ - p_76795_3_) + p_76795_3_;
int k1 = this.chunk_Z + this.randomGenerator.nextInt(16);
p_76795_2_.generate(this.currentWorld, this.randomGenerator, i1, j1, k1);
}
}