From 1cf0790977ebbdbbc6a7bf8b59f483947a35a131 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Thu, 28 Nov 2024 00:26:47 -0500 Subject: [PATCH] started adding bedrock veins --- AntimatterAPI | 2 +- .../gtreimagined/gt5r/loader/WorldGenLoader.java | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/AntimatterAPI b/AntimatterAPI index a99731d77..0bd6a17dd 160000 --- a/AntimatterAPI +++ b/AntimatterAPI @@ -1 +1 @@ -Subproject commit a99731d77ff869845c05ea83ecd62ac84b0a7222 +Subproject commit 0bd6a17dd23db264e47993c48bf36efdaaa9fd05 diff --git a/common/src/main/java/org/gtreimagined/gt5r/loader/WorldGenLoader.java b/common/src/main/java/org/gtreimagined/gt5r/loader/WorldGenLoader.java index d6e14c22a..886109073 100644 --- a/common/src/main/java/org/gtreimagined/gt5r/loader/WorldGenLoader.java +++ b/common/src/main/java/org/gtreimagined/gt5r/loader/WorldGenLoader.java @@ -7,6 +7,7 @@ import muramasa.antimatter.material.Material; import muramasa.antimatter.util.TagUtils; import muramasa.antimatter.worldgen.StoneLayerOre; +import muramasa.antimatter.worldgen.bedrockore.WorldGenBedrockVein; import muramasa.antimatter.worldgen.object.WorldGenStoneLayerBuilder; import muramasa.antimatter.worldgen.smallore.WorldGenSmallOreBuilder; import muramasa.antimatter.worldgen.vanillaore.WorldGenVanillaOreBuilder; @@ -65,6 +66,20 @@ public static void init(WorldGenEvent ev) { } } + private static void initBedrockVeins(WorldGenEvent ev) { + ev.bedrockOre(WorldGenBedrockVein.create("diamond", 128000, Diamond, OVERWORLD.location())); + ev.bedrockOre(WorldGenBedrockVein.create("tungstate", 96000, Tungstate, OVERWORLD.location())); + ev.bedrockOre(WorldGenBedrockVein.create("scheelite", 96000, Scheelite, OVERWORLD.location())); + ev.bedrockOre(WorldGenBedrockVein.create("uraninite", 60000, Uraninite, OVERWORLD.location())); + ev.bedrockOre(WorldGenBedrockVein.create("pitchblende", 60000, Pitchblende, OVERWORLD.location())); + ev.bedrockOre(WorldGenBedrockVein.create("gold_a", 32000, Gold, OVERWORLD.location())); + ev.bedrockOre(WorldGenBedrockVein.create("gold_b", 32000, Gold, OVERWORLD.location())); + ev.bedrockOre(WorldGenBedrockVein.create("sheldonite", 16000, Sheldonite, OVERWORLD.location())); + ev.bedrockOre(WorldGenBedrockVein.create("copper", 16000, Copper, OVERWORLD.location())); + ev.bedrockOre(WorldGenBedrockVein.create("monzanite", 16000, Monazite, OVERWORLD.location())); + + } + private static void initTwilightForestOres(WorldGenEvent event){ event.vanillaOre(new WorldGenVanillaOreBuilder().withMaterial(Coal).withMaterialType(ORE_STONE).withSize(50).withWeight(1).atHeight(-16, 0).withDimensions(TWILIGHT_FOREST.location()).buildMaterial()); event.vanillaOre(new WorldGenVanillaOreBuilder().withMaterial(Lignite).withMaterialType(ORE_STONE).withSize(50).withWeight(1).atHeight(-16, 0).withDimensions(TWILIGHT_FOREST.location()).buildMaterial());