mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
bals
This commit is contained in:
parent
a2e3a2540d
commit
972b1140a8
@ -45,6 +45,7 @@ import com.hbm.tileentity.bomb.TileEntityNukeCustom;
|
|||||||
import com.hbm.tileentity.machine.rbmk.RBMKDials;
|
import com.hbm.tileentity.machine.rbmk.RBMKDials;
|
||||||
import com.hbm.util.*;
|
import com.hbm.util.*;
|
||||||
import com.hbm.world.biome.BiomeGenCraterBase;
|
import com.hbm.world.biome.BiomeGenCraterBase;
|
||||||
|
import com.hbm.world.biome.BiomeGenNoMansLand;
|
||||||
import com.hbm.world.feature.BedrockOre;
|
import com.hbm.world.feature.BedrockOre;
|
||||||
import com.hbm.world.feature.OreCave;
|
import com.hbm.world.feature.OreCave;
|
||||||
import com.hbm.world.feature.OreLayer3D;
|
import com.hbm.world.feature.OreLayer3D;
|
||||||
@ -299,7 +300,7 @@ public class MainRegistry {
|
|||||||
OreDictManager.registerOres();
|
OreDictManager.registerOres();
|
||||||
|
|
||||||
if(WorldConfig.enableCraterBiomes) BiomeGenCraterBase.initDictionary();
|
if(WorldConfig.enableCraterBiomes) BiomeGenCraterBase.initDictionary();
|
||||||
//BiomeGenNoMansLand.initDictionary();
|
BiomeGenNoMansLand.initDictionary();
|
||||||
|
|
||||||
aMatSchrab.customCraftingMaterial = ModItems.ingot_schrabidium;
|
aMatSchrab.customCraftingMaterial = ModItems.ingot_schrabidium;
|
||||||
aMatHaz.customCraftingMaterial = ModItems.hazmat_cloth;
|
aMatHaz.customCraftingMaterial = ModItems.hazmat_cloth;
|
||||||
|
|||||||
@ -20,17 +20,22 @@ public class BiomeDecoratorNoMansLand extends BiomeDecorator {
|
|||||||
|
|
||||||
public WorldGenerator sellafiteGen;
|
public WorldGenerator sellafiteGen;
|
||||||
public WorldGenerator gravelGen;
|
public WorldGenerator gravelGen;
|
||||||
|
public WorldGenerator dirtGen;
|
||||||
public int sellafitePerChunk;
|
public int sellafitePerChunk;
|
||||||
public int gravelPerChunk;
|
public int gravelPerChunk;
|
||||||
|
public int dirtPerChunk;
|
||||||
|
|
||||||
public BiomeDecoratorNoMansLand() {
|
public BiomeDecoratorNoMansLand() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
//TODO: instead of multiple localized shitty generators, make one that covers everything
|
//TODO: instead of multiple localized shitty generators, make one that covers everything
|
||||||
this.sellafiteGen = new WorldGenSurfaceSpot(ModBlocks.sellafield_slaked, 6, 0.15F);
|
this.sellafiteGen = new WorldGenSurfaceSpot(ModBlocks.sellafield_slaked, 8, 0.25F);
|
||||||
this.gravelGen = new WorldGenSurfaceSpot(ModBlocks.sellafield_slaked, 6, 0.15F);
|
this.gravelGen = new WorldGenSurfaceSpot(Blocks.gravel, 8, 0.15F);
|
||||||
this.sellafitePerChunk = 2;
|
this.dirtGen = new WorldGenSurfaceSpot(ModBlocks.ground, 8, 0.15F);
|
||||||
this.gravelPerChunk = 2;
|
this.sellafitePerChunk = 4;
|
||||||
|
this.gravelPerChunk = 0;
|
||||||
|
this.dirtPerChunk = 4;
|
||||||
|
this.generateLakes = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void genDecorations(BiomeGenBase biome) {
|
protected void genDecorations(BiomeGenBase biome) {
|
||||||
@ -71,6 +76,13 @@ public class BiomeDecoratorNoMansLand extends BiomeDecorator {
|
|||||||
this.gravelGen.generate(this.currentWorld, this.randomGenerator, x, this.currentWorld.getTopSolidOrLiquidBlock(x, z), z);
|
this.gravelGen.generate(this.currentWorld, this.randomGenerator, x, this.currentWorld.getTopSolidOrLiquidBlock(x, z), z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// DIRT ///
|
||||||
|
for(int i = 0; i < this.dirtPerChunk; ++i) {
|
||||||
|
x = this.chunk_X + this.randomGenerator.nextInt(16) + 8;
|
||||||
|
z = this.chunk_Z + this.randomGenerator.nextInt(16) + 8;
|
||||||
|
this.dirtGen.generate(this.currentWorld, this.randomGenerator, x, this.currentWorld.getTopSolidOrLiquidBlock(x, z), z);
|
||||||
|
}
|
||||||
|
|
||||||
int trees = this.treesPerChunk;
|
int trees = this.treesPerChunk;
|
||||||
|
|
||||||
if(this.randomGenerator.nextInt(10) == 0) trees++;
|
if(this.randomGenerator.nextInt(10) == 0) trees++;
|
||||||
|
|||||||
@ -25,7 +25,8 @@ public class BiomeGenNoMansLand extends BiomeGenBase {
|
|||||||
|
|
||||||
public static void initDictionary() {
|
public static void initDictionary() {
|
||||||
BiomeDictionary.registerBiomeType(noMansLand, DEAD, PLAINS, WASTELAND);
|
BiomeDictionary.registerBiomeType(noMansLand, DEAD, PLAINS, WASTELAND);
|
||||||
BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(noMansLand, 5));
|
BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(noMansLand, 500));
|
||||||
|
BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(noMansLand, 500));
|
||||||
}
|
}
|
||||||
|
|
||||||
public BiomeGenNoMansLand(int id) {
|
public BiomeGenNoMansLand(int id) {
|
||||||
|
|||||||
@ -9,6 +9,7 @@ import java.util.Random;
|
|||||||
import com.hbm.blocks.ModBlocks;
|
import com.hbm.blocks.ModBlocks;
|
||||||
import com.hbm.config.StructureConfig;
|
import com.hbm.config.StructureConfig;
|
||||||
import com.hbm.main.StructureManager;
|
import com.hbm.main.StructureManager;
|
||||||
|
import com.hbm.world.biome.BiomeGenNoMansLand;
|
||||||
import com.hbm.world.gen.NBTStructure.JigsawPiece;
|
import com.hbm.world.gen.NBTStructure.JigsawPiece;
|
||||||
import com.hbm.world.gen.NBTStructure.JigsawPool;
|
import com.hbm.world.gen.NBTStructure.JigsawPool;
|
||||||
import com.hbm.world.gen.NBTStructure.SpawnCondition;
|
import com.hbm.world.gen.NBTStructure.SpawnCondition;
|
||||||
@ -49,15 +50,16 @@ public class NTMWorldGenerator implements IWorldGenerator {
|
|||||||
|
|
||||||
/// TRENCH ///
|
/// TRENCH ///
|
||||||
NBTStructure.registerStructure(0, new SpawnCondition() {{
|
NBTStructure.registerStructure(0, new SpawnCondition() {{
|
||||||
|
canSpawn = biome -> biome == BiomeGenNoMansLand.noMansLand;
|
||||||
sizeLimit = 128;
|
sizeLimit = 128;
|
||||||
startPool = "trench";
|
startPool = "trench";
|
||||||
spawnWeight = 200;
|
spawnWeight = 200;
|
||||||
pools = new HashMap<String, NBTStructure.JigsawPool>() {{
|
pools = new HashMap<String, NBTStructure.JigsawPool>() {{
|
||||||
put("trench", new JigsawPool() {{
|
put("trench", new JigsawPool() {{
|
||||||
add(new JigsawPiece("trench", StructureManager.trench) {{ heightOffset = -4; conformToTerrain = true; }}, 100);
|
add(new JigsawPiece("trench", StructureManager.trench) {{ heightOffset = -4; conformToTerrain = true; }}, 100);
|
||||||
add(new JigsawPiece("trench_left", StructureManager.trench_left) {{ heightOffset = -4; conformToTerrain = true; }}, 10);
|
add(new JigsawPiece("trench_left", StructureManager.trench_left) {{ heightOffset = -4; conformToTerrain = true; }}, 25);
|
||||||
add(new JigsawPiece("trench_right", StructureManager.trench_right) {{ heightOffset = -4; conformToTerrain = true; }}, 10);
|
add(new JigsawPiece("trench_right", StructureManager.trench_right) {{ heightOffset = -4; conformToTerrain = true; }}, 25);
|
||||||
add(new JigsawPiece("trench_junction", StructureManager.trench_junction) {{ heightOffset = -4; conformToTerrain = true; }}, 25);
|
add(new JigsawPiece("trench_junction", StructureManager.trench_junction) {{ heightOffset = -4; conformToTerrain = true; }}, 35);
|
||||||
}});
|
}});
|
||||||
}};
|
}};
|
||||||
}});
|
}});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user