Modding FR

etienne520

Aventurier
15 Mai 2011
93
1
3
Alors, c'est modifier, pour la 1.7.3 ? Car j'ai télécharger les tutos c'est pas à jours je crois et répondez moi part MP silvouplait car ya tellement de message je vois jamais rien.
 

ulko10

Bucheron
20 Avril 2011
367
3
13
Salut a tous,

J'ai essayer d'jaouter un minerai a la generation de la map, sa a fonctionné, mais quand j'en ai rajouté un deuxième tout plante lors de la création du monde : stackoverflowerror.

Comment resoudre ce problème ?
voici mon code

public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < 100; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(100);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Size.Gaz.blockID, 20)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int a = 0; a < 100; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(100);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Size.Aceras.blockID, 20)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}