use of net.minecraft.world.WorldProviderSurface in project takumicraft by TNTModders.
the class TakumiGunOreGenerator method generateOre.
private void generateOre(World world, Random random, int x, int z) {
// 1チャンクで生成したい回数だけ繰り返す。
if (world.provider instanceof WorldProviderSurface) {
for (int i = 0; i < 10; i++) {
int genX = x + random.nextInt(16);
int genY = 1 + random.nextInt(64);
int genZ = z + random.nextInt(16);
new WorldGenMinable(random.nextInt(50) == 0 ? TakumiBlockCore.DUMMY_GUNORE.getDefaultState() : TakumiBlockCore.GUNORE.getDefaultState(), 25).generate(world, random, new BlockPos(genX, genY, genZ));
}
}
}
Aggregations