Ore gen problems

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Lyra_Chan

New Member
Jul 29, 2019
376
6
0
For the past couple of days, I been a having problems with ore gen, in specific variables.

This is the code I was having issues with

public void generateOre(Block block, World world, Random random, int chunkX, int chunkZ, int minVienSize,
int maxVienSize, int chance, int minY, int maxY, Block generateIn){
int vienSize = minVienSize + random.nextInt(maxVienSize - minVienSize);
int heightRange = maxY - minY;
WorldGenMinable gen = new WorldGenMinable(block, vienSize, generateIn);
for(int i = 0; i < chance; i++){
int xRand = chunkX * 16 + random.nextInt(16);
int yRand = random.nextInt(heightRange) + minY;
int zRand = chunkZ * 16 + random.nextInt(16);
gen.generate(world, random, xRand, yRand, zRand);

Mainly with this line here:
1cfc7eaac8f9baf49a4918d3c126081a.png

When I highlight over it, it says the constructor WorldGenMinable(Block, int, Block) is undefined and their are no suggestions to fix it in eclipse.
 

Lyra_Chan

New Member
Jul 29, 2019
376
6
0
...oh... Well I decided to not do any world gen after all besides dungeon loot for my mod. However, I will keep that in mind
 

Hlaaftana

New Member
Jul 29, 2019
304
0
0
WorldGenMinable has 3 constructors. The one you want is Block, int, int, Block, correspondent to block, (metadata), vienSize, generateIn.
BTW, it's spelled "vein".