Added base metals to worldgen
This commit is contained in:
parent
dc4bd2724e
commit
89d29c2a5e
2 changed files with 62 additions and 0 deletions
|
@ -16,6 +16,11 @@ public class ConfigTechReborn {
|
||||||
public static boolean RubyOreTrue;
|
public static boolean RubyOreTrue;
|
||||||
public static boolean SapphireOreTrue;
|
public static boolean SapphireOreTrue;
|
||||||
public static boolean BauxiteOreTrue;
|
public static boolean BauxiteOreTrue;
|
||||||
|
public static boolean CopperOreTrue;
|
||||||
|
public static boolean TinOreTrue;
|
||||||
|
public static boolean LeadOreTrue;
|
||||||
|
public static boolean SilverOreTrue;
|
||||||
|
|
||||||
public static boolean PyriteOreTrue;
|
public static boolean PyriteOreTrue;
|
||||||
public static boolean CinnabarOreTrue;
|
public static boolean CinnabarOreTrue;
|
||||||
public static boolean SphaleriteOreTrue;
|
public static boolean SphaleriteOreTrue;
|
||||||
|
@ -105,6 +110,22 @@ public class ConfigTechReborn {
|
||||||
"Allow BauxiteOre", true,
|
"Allow BauxiteOre", true,
|
||||||
"Allow BauxiteOre to be generated in your world.")
|
"Allow BauxiteOre to be generated in your world.")
|
||||||
.getBoolean(true);
|
.getBoolean(true);
|
||||||
|
CopperOreTrue = config.get(CATEGORY_WORLD,
|
||||||
|
"Allow CopperOre", true,
|
||||||
|
"Allow CopperOre to be generated in your world.")
|
||||||
|
.getBoolean(true);
|
||||||
|
TinOreTrue = config.get(CATEGORY_WORLD,
|
||||||
|
"Allow TinOre", true,
|
||||||
|
"Allow TinOre to be generated in your world.")
|
||||||
|
.getBoolean(true);
|
||||||
|
LeadOreTrue = config.get(CATEGORY_WORLD,
|
||||||
|
"Allow LeadOre", true,
|
||||||
|
"Allow LeadOre to be generated in your world.")
|
||||||
|
.getBoolean(true);
|
||||||
|
SilverOreTrue = config.get(CATEGORY_WORLD,
|
||||||
|
"Allow LeadOre", true,
|
||||||
|
"Allow LeadOre to be generated in your world.")
|
||||||
|
.getBoolean(true);
|
||||||
PyriteOreTrue = config.get(CATEGORY_WORLD,
|
PyriteOreTrue = config.get(CATEGORY_WORLD,
|
||||||
"Allow PyriteOre", true,
|
"Allow PyriteOre", true,
|
||||||
"Allow PyriteOre to be generated in your world.")
|
"Allow PyriteOre to be generated in your world.")
|
||||||
|
|
|
@ -26,6 +26,10 @@ public class TROreGen implements IWorldGenerator {
|
||||||
WorldGenMinable oreSheldonite;
|
WorldGenMinable oreSheldonite;
|
||||||
WorldGenMinable oreOlivine;
|
WorldGenMinable oreOlivine;
|
||||||
WorldGenMinable oreSodalite;
|
WorldGenMinable oreSodalite;
|
||||||
|
WorldGenMinable oreCopper;
|
||||||
|
WorldGenMinable oreTin;
|
||||||
|
WorldGenMinable oreLead;
|
||||||
|
WorldGenMinable oreSilver;
|
||||||
|
|
||||||
public TROreGen() {
|
public TROreGen() {
|
||||||
//World
|
//World
|
||||||
|
@ -34,6 +38,11 @@ public class TROreGen implements IWorldGenerator {
|
||||||
oreRuby = new WorldGenMinable(ModBlocks.ore, 2, 8, Blocks.stone);
|
oreRuby = new WorldGenMinable(ModBlocks.ore, 2, 8, Blocks.stone);
|
||||||
oreSapphire = new WorldGenMinable(ModBlocks.ore, 3, 8, Blocks.stone);
|
oreSapphire = new WorldGenMinable(ModBlocks.ore, 3, 8, Blocks.stone);
|
||||||
oreBauxite = new WorldGenMinable(ModBlocks.ore, 4, 8, Blocks.stone);
|
oreBauxite = new WorldGenMinable(ModBlocks.ore, 4, 8, Blocks.stone);
|
||||||
|
oreCopper = new WorldGenMinable(ModBlocks.ore, 12, 8, Blocks.stone);
|
||||||
|
oreTin = new WorldGenMinable(ModBlocks.ore, 13, 8, Blocks.stone);
|
||||||
|
oreLead = new WorldGenMinable(ModBlocks.ore, 14, 8, Blocks.stone);
|
||||||
|
oreSilver = new WorldGenMinable(ModBlocks.ore, 15, 8, Blocks.stone);
|
||||||
|
|
||||||
//Nether
|
//Nether
|
||||||
orePyrite = new WorldGenMinable(ModBlocks.ore, 5, 8, Blocks.netherrack);
|
orePyrite = new WorldGenMinable(ModBlocks.ore, 5, 8, Blocks.netherrack);
|
||||||
oreCinnabar = new WorldGenMinable(ModBlocks.ore, 6, 8, Blocks.netherrack);
|
oreCinnabar = new WorldGenMinable(ModBlocks.ore, 6, 8, Blocks.netherrack);
|
||||||
|
@ -100,6 +109,38 @@ public class TROreGen implements IWorldGenerator {
|
||||||
oreBauxite.generate(world, random, xPos, yPos, zPos);
|
oreBauxite.generate(world, random, xPos, yPos, zPos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (config.CopperOreTrue) {
|
||||||
|
for (int i = 0; i <= 16; i++) {
|
||||||
|
xPos = xChunk + random.nextInt(16);
|
||||||
|
yPos = 60 + random.nextInt(60 - 20);
|
||||||
|
zPos = zChunk + random.nextInt(16);
|
||||||
|
oreCopper.generate(world, random, xPos, yPos, zPos);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (config.TinOreTrue) {
|
||||||
|
for (int i = 0; i <= 16; i++) {
|
||||||
|
xPos = xChunk + random.nextInt(16);
|
||||||
|
yPos = 60 + random.nextInt(60 - 20);
|
||||||
|
zPos = zChunk + random.nextInt(16);
|
||||||
|
oreTin.generate(world, random, xPos, yPos, zPos);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (config.LeadOreTrue) {
|
||||||
|
for (int i = 0; i <= 16; i++) {
|
||||||
|
xPos = xChunk + random.nextInt(16);
|
||||||
|
yPos = 60 + random.nextInt(60 - 20);
|
||||||
|
zPos = zChunk + random.nextInt(16);
|
||||||
|
oreLead.generate(world, random, xPos, yPos, zPos);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (config.SilverOreTrue) {
|
||||||
|
for (int i = 0; i <= 16; i++) {
|
||||||
|
xPos = xChunk + random.nextInt(16);
|
||||||
|
yPos = 60 + random.nextInt(60 - 20);
|
||||||
|
zPos = zChunk + random.nextInt(16);
|
||||||
|
oreSilver.generate(world, random, xPos, yPos, zPos);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void generateHellOres(Random random, int xChunk, int zChunk, World world) {
|
void generateHellOres(Random random, int xChunk, int zChunk, World world) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue