-
-
Save anonymous/6fcac69c2bbf1e534e0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CarnelianGenerator implements IWorldGenerator{ | |
@Override | |
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { | |
if(world.provider.dimensionId == 0) | |
{ | |
for(int i = 0; i < 20; i++) | |
{ | |
int blockX = chunkX + random.nextInt(16); | |
int blockY = random.nextInt(256); | |
int blockZ = chunkZ + random.nextInt(16); | |
(new WorldGenMinable(Arcano.carnelianOre, 5)).generate(world, random, blockX, blockY, blockZ); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment