Skip to content

Commit 9e1cfc0

Browse files
committed
Add veins for old biomes
1 parent 43b0813 commit 9e1cfc0

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

src/main/java/su/terrafirmagreg/core/common/data/TFGTags.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ public static final class Biomes {
174174

175175
public static final TagKey<Biome> EarthIsSaltFlats = createBiomeTag("earth/is_salt_flats");
176176

177+
public static final TagKey<Biome> EarthIsOldGen = createBiomeTag("earth/is_oldgen");
178+
177179
private static TagKey<Biome> createBiomeTag(String path) {
178180
return createBiomeTag(TFGCore.id(path));
179181
}

src/main/java/su/terrafirmagreg/core/common/data/tfgt/TFGBedrockFluids.java

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,4 +421,54 @@ public static void init() {
421421
.depletionChance(100)
422422
.depletedYield(0)
423423
.biomes(10, TFGTags.Biomes.EarthIsMountain));
424+
425+
// =========================================================
426+
// OLD GEN
427+
// =========================================================
428+
429+
public static BedrockFluidDefinition OLD_GEN_HEAVY_OIL = create(TFGCore.id("old_gen_heavy_oil_deposit"), builder -> builder
430+
.dimensions(overworld)
431+
.fluid(GTMaterials.OilHeavy::getFluid)
432+
.weight(0)
433+
.yield(100, 200)
434+
.depletionAmount(1)
435+
.depletionChance(100)
436+
.depletedYield(20)
437+
.biomes(10, TFGTags.Biomes.EarthIsOldGen));
438+
439+
public static BedrockFluidDefinition OLD_GEN_LIGHT_OIL = create(TFGCore.id("old_gen_light_oil_deposit"), builder -> builder
440+
.fluid(GTMaterials.OilLight::getFluid)
441+
.weight(0)
442+
.yield(175, 300)
443+
.depletionAmount(1)
444+
.depletionChance(100)
445+
.depletedYield(25)
446+
.biomes(25, TFGTags.Biomes.EarthIsOldGen));
447+
448+
public static BedrockFluidDefinition OLD_GEN_NATURAL_GAS = create(TFGCore.id("old_gen_natural_gas_deposit"), builder -> builder
449+
.fluid(GTMaterials.NaturalGas::getFluid)
450+
.weight(0)
451+
.yield(100, 175)
452+
.depletionAmount(1)
453+
.depletionChance(100)
454+
.depletedYield(20)
455+
.biomes(15, TFGTags.Biomes.EarthIsOldGen));
456+
457+
public static BedrockFluidDefinition OLD_GEN_OIL = create(TFGCore.id("old_gen_oil_deposit"), builder -> builder
458+
.fluid(GTMaterials.Oil::getFluid)
459+
.weight(0)
460+
.yield(175, 300)
461+
.depletionAmount(1)
462+
.depletionChance(100)
463+
.depletedYield(25)
464+
.biomes(20, TFGTags.Biomes.EarthIsOldGen));
465+
466+
public static BedrockFluidDefinition OLD_GEN_RAW_OIL = create(TFGCore.id("old_gen_raw_oil_deposit"), builder -> builder
467+
.fluid(GTMaterials.RawOil::getFluid)
468+
.weight(0)
469+
.yield(200, 300)
470+
.depletionAmount(1)
471+
.depletionChance(100)
472+
.depletedYield(25)
473+
.biomes(20, TFGTags.Biomes.EarthIsOldGen));
424474
}

0 commit comments

Comments
 (0)