Beispiel #1
0
def add_biome_standard(config: ConfigFile, metal: Vein, mineral: Vein, gemstone: Vein, rock: Vein):
    if metal is not None:
        c.add(metal_gradient.with_template(ClusterDeposit(metal)))

    if mineral is not None:
        c.add(mineral_buried_gradient.with_template(ClusterDeposit(mineral)))
        c.add(mineral_surface_gradient.with_template(ClusterDeposit(mineral)))

    if gemstone is not None:
        c.add(gemstone_gradient.with_template(ClusterDeposit(gemstone)))

    if rock is not None:
        c.add(ClusterDeposit(rock.with_purity(20), 64))
"""Define various ores from the ExtremeReactors mod."""

from packconfig.oregen import Ore, Vein


# Ores #################################################################################################################

yellorite_ore = Ore("bigreactors:oreyellorite")

# Veins#################################################################################################################

yellorite_vein = Vein(yellorite_ore)
Beispiel #3
0
"""Define a generation schema which matches the vanilla ore generation in Minecraft."""

from packconfig.oregen import ConfigFile, Vein
from packconfig.oregen.deposits import ClusterDeposit
from packconfig.oregen.data import vanilla as mc

########################################################################################################################

config = ConfigFile("00_minecraft.json", priority=1000)
with config as c:

    with c.dimension(mc.overworld):
        with c.biomes(mc.any_biome):
            with c.distribution(mc.anywhere_band):
                c.add(ClusterDeposit(Vein(mc.dirt).with_purity(0.5), 32))
                c.add(ClusterDeposit(Vein(mc.gravel).with_purity(0.4), 32))

            with c.distribution(mc.stone_variants_band):
                c.add(ClusterDeposit(Vein(mc.diorite).with_purity(1.5), 32))
                c.add(ClusterDeposit(Vein(mc.granite).with_purity(1.5), 32))
                c.add(ClusterDeposit(Vein(mc.andesite).with_purity(1.5), 32))

            with c.distribution(mc.coal_band):
                c.add(ClusterDeposit(mc.coal_vein.with_purity(1.0), 16))

            with c.distribution(mc.iron_band):
                c.add(ClusterDeposit(mc.iron_vein.with_purity(1.0), 8))

            with c.distribution(mc.gold_band):
                c.add(ClusterDeposit(mc.gold_vein.with_purity(0.2), 8))
)

vanilla.swamp_biomes.include(
    "advancedrocketry:deepswamp",
    "advancedrocketry:marsh",
)


# Ores #################################################################################################################

# Base Materials
basalt = Ore("advancedrocketry:basalt")

# Metals
aluminum_ore = Ore("libvulpes:ore0", 9)
copper_ore = Ore("libvulpes:ore0", 4)
dilithium_ore = Ore("libvulpes:ore0", 0)
iridium_ore = Ore("libvulpes:ore0", 10)
tin_ore = Ore("libvulpes:ore0", 5)
titanium_ore = Ore("libvulpes:ore0", 8)


# Veins#################################################################################################################

aluminum_vein = Vein(aluminum_ore)
copper_vein = Vein(copper_ore)
dilithium_vein = Vein(dilithium_ore)
iridium_vein = Vein(iridium_ore)
tin_vein = Vein(tin_ore)
titanium_vein = Vein(titanium_ore)
Beispiel #5
0
"""Define various ores from the BaseMinerals mod."""

from packconfig.oregen import Ore, Vein

# Ores #################################################################################################################

salt_ore = Ore("baseminerals:salt_ore")
saltpeter_ore = Ore("baseminerals:saltpeter_ore")
sulfur_ore = Ore("baseminerals:sulfur_ore")

# Veins#################################################################################################################

salt_vein = Vein(salt_ore)
saltpeter_vein = Vein(saltpeter_ore)
sulfur_vein = Vein(sulfur_ore)
Beispiel #6
0
# Metals
aluminum_ore = Ore("thermalfoundation:ore", 4)
copper_ore = Ore("thermalfoundation:ore", 0)
iridium_ore = Ore("thermalfoundation:ore", 7)
lead_ore = Ore("thermalfoundation:ore", 3)
mithril_ore = Ore("thermalfoundation:ore", 8)
nickel_ore = Ore("thermalfoundation:ore", 5)
platinum_ore = Ore("thermalfoundation:ore", 6)
silver_ore = Ore("thermalfoundation:ore", 2)
tin_ore = Ore("thermalfoundation:ore", 1)


# Veins ################################################################################################################

# Clathrates
destablized_redstone_vein = Vein(destabilized_redstone)
energized_netherrack_vein = Vein(energized_netherrack, material_ore=mc.netherrack)
gravel_oil_vein = Vein(gravel_oil_ore, material_ore=mc.gravel)
sand_oil_vein = Vein(sand_oil_ore, material_ore=mc.sand)
red_sand_oil_vein = Vein(red_sand_oil_ore, material_ore=mc.red_sand)

# Metals
aluminum_vein = Vein(aluminum_ore)
copper_vein = Vein(copper_ore)
iridium_vein = Vein(iridium_ore)
lead_vein = Vein(lead_ore)
mithril_vein = Vein(mithril_ore)
nickel_vein = Vein(nickel_ore)
platinum_vein = Vein(platinum_ore)
silver_vein = Vein(silver_ore)
tin_vein = Vein(tin_ore)
Beispiel #7
0
zinc_ore = Ore("railcraft:ore_metal", 5)

# Minerals
diamond_dark_ore = Ore("railcraft:ore", 2)
emerald_dark_ore = Ore("railcraft:ore", 3)
firestone_ore = Ore("railcraft:ore_magic", 0)
lapis_dark_ore = Ore("railcraft:ore", 4)
saltpeter_ore = Ore("railcraft:ore", 1)
saltpeter_spawner = Ore("railcraft:worldlogic")
sulfur_ore = Ore("railcraft:ore", 0)

# Poor Metals
copper_poor_ore = Ore("railcraft:ore_metal_poor", 2)
gold_poor_ore = Ore("railcraft:ore_metal_poor", 1)
iron_poor_ore = Ore("railcraft:ore_metal_poor", 0)
lead_poor_ore = Ore("railcraft:ore_metal_poor", 4)
nickel_poor_ore = Ore("railcraft:ore_metal_poor", 6)
silver_poor_ore = Ore("railcraft:ore_metal_poor", 5)
tin_poor_ore = Ore("railcraft:ore_metal_poor", 3)
zinc_poor_ore = Ore("railcraft:ore_metal_poor", 7)

# Stone Variants
abyssal_stone = Ore("railcraft:generic", 8)
quaried_stone = Ore("railcraft:generic", 9)

# Veins ################################################################################################################

dark_diamond_vein = Vein(diamond_dark_ore, material_ore=abyssal_stone)
dark_emerald_vein = Vein(emerald_dark_ore, material_ore=abyssal_stone)
dark_lapis_vein = Vein(lapis_dark_ore, material_ore=abyssal_stone)
"""Define various ores from the ModernMetals mod."""

from packconfig.oregen import Ore, Vein

# Ores #################################################################################################################

aluminum_ore = Ore("modernmetals:aluminum_ore")
uranium_ore = Ore("modernmetals:uranium_ore")

# Veins ################################################################################################################

aluminum_vein = Vein(aluminum_ore)
uranium_vein = Vein(uranium_ore)
Beispiel #9
0
"""Define various ores from the BaseMetals mod."""

from packconfig.oregen import Ore, Vein

# Ores #################################################################################################################

copper_ore = Ore("basemetals:copper_ore")
lead_ore = Ore("basemetals:lead_ore")
nickel_ore = Ore("basemetals:nickel_ore")
platinum_ore = Ore("basemetals:platinum_ore")
silver_ore = Ore("basemetals:silver_ore")
tin_ore = Ore("basemetals:tin_ore")
zinc_ore = Ore("basemetals:zinc_ore")

# Veins ################################################################################################################

copper_vein = Vein(copper_ore)
lead_vein = Vein(lead_ore)
nickel_vein = Vein(nickel_ore)
platinum_vein = Vein(platinum_ore)
silver_vein = Vein(silver_ore)
tin_vein = Vein(tin_ore)
zinc_vein = Vein(zinc_ore)
"""Define various ores from the ModularForceFieldSystem mod."""

from packconfig.oregen import Ore, Vein

# Ores #################################################################################################################

monazite_ore = Ore("modularforcefieldsystem:monazit_ore")

# Veins ################################################################################################################

monazite_vein = Vein(monazite_ore)
Beispiel #11
0
water = Ore("minecraft:water")

# Metals
gold_ore = Ore("minecraft:gold_ore")
iron_ore = Ore("minecraft:iron_ore")

# Minerals
coal_ore = Ore("minecraft:coal_ore")
diamond_ore = Ore("minecraft:diamond_ore")
emerald_ore = Ore("minecraft:emerald_ore")
glowstone = Ore("minecraft:glowstone")
lapis_ore = Ore("minecraft:lapis_ore")
magma = Ore("minecraft:magma")
quartz_ore = Ore("minecraft:quartz_ore")
redstone_ore = Ore("minecraft:redstone_ore")

# Animals
silverfish = Ore("minecraft:monster_egg", variant="stone")

# Veins ################################################################################################################

coal_vein = Vein(coal_ore)
diamond_vein = Vein(diamond_ore)
emerald_vein = Vein(emerald_ore)
gold_vein = Vein(gold_ore)
iron_vein = Vein(iron_ore)
lapis_vein = Vein(lapis_ore)
quartz_vein = Vein(quartz_ore, material_ore=netherrack)
redstone_vein = Vein(redstone_ore)
silverfish_vein = Vein(silverfish)
Beispiel #12
0
"""Define various ores from the GravelOres mod."""

from packconfig.oregen import Ore, Vein

# Ores #################################################################################################################

aluminum_gravel_ore = Ore("gravelores:aluminum_gravel_ore")
copper_gravel_ore = Ore("gravelores:copper_gravel_ore")
diamond_gravel_ore = Ore("gravelores:diamond_gravel_ore")
emerald_gravel_ore = Ore("gravelores:emerald_gravel_ore")
gold_gravel_ore = Ore("gravelores:gold_gravel_ore")
iron_gravel_ore = Ore("gravelores:iron_gravel_ore")
lapis_gravel_ore = Ore("gravelores:lapis_gravel_ore")
lead_gravel_ore = Ore("gravelores:lead_gravel_ore")
redstone_gravel_ore = Ore("gravelores:redstone_gravel_ore")
silver_gravel_ore = Ore("gravelores:silver_gravel_ore")
nickel_gravel_ore = Ore("gravelores:nickel_gravel_ore")
tin_gravel_ore = Ore("gravelores:tin_gravel_ore")

# Veins ################################################################################################################

gravel = Ore("minecraft:gravel")

copper_gravel_vein = Vein(copper_gravel_ore, material_ore=gravel)
gold_gravel_vein = Vein(gold_gravel_ore, material_ore=gravel)
iron_gravel_vein = Vein(iron_gravel_ore, material_ore=gravel)
lapis_gravel_vein = Vein(lapis_gravel_ore, material_ore=gravel)
silver_gravel_vein = Vein(silver_gravel_ore, material_ore=gravel)
tin_gravel_vein = Vein(tin_gravel_ore, material_ore=gravel)
Beispiel #13
0
zinc_ore = rc.zinc_ore
zinc_poor_ore = rc.zinc_poor_ore

# Stones
stone = mc.stone

# Config File ##########################################################################################################

base_asteroids = [
    Asteroid(name="Aluminum",
             distance=25,
             mass=64,
             weight=100,
             vein=Vein(
                 aluminum_ore.weighted(60),
                 zinc_ore.weighted(20),
                 stone.weighted(10),
                 zinc_poor_ore.weighted(5),
             ).with_purity(25)),
    Asteroid(name="Bronze",
             distance=25,
             mass=64,
             weight=100,
             vein=Vein(
                 copper_poor_ore.weighted(30),
                 tin_poor_ore.weighted(30),
                 copper_ore.weighted(20),
                 tin_ore.weighted(20),
             ).with_purity(25)),
    Asteroid(name="Copper",
             distance=25,
             mass=64,
Beispiel #14
0
        c.add(mineral_surface_gradient.with_template(ClusterDeposit(mineral)))

    if gemstone is not None:
        c.add(gemstone_gradient.with_template(ClusterDeposit(gemstone)))

    if rock is not None:
        c.add(ClusterDeposit(rock.with_purity(20), 64))


# Config File ##########################################################################################################

config = ConfigFile("02_brunel.json")
with config as c:
    with c.dimension(mc.overworld):
        with c.biomes(mountain_biomes):
            add_biome_standard(c, Vein(iron_ore), None, Vein(silver_ore), Vein(marble))
            c.add(mountain_gradient.with_template(ClusterDeposit(Vein(iron_ore))))

            with c.distribution(mountain_band):
                c.add(ClusterDeposit(Vein(iron_gravel_ore, material_ore=gravel, purity=1.0), 2))

        with c.biomes(river_biomes):
            add_biome_standard(c, None, None, None, None)

            with c.distribution(submerged_gravel_band):
                c.add(ClusterDeposit(Vein(iron_gravel_ore, material_ore=gravel, purity=1.0), 2))
                c.add(ClusterDeposit(Vein(silver_gravel_ore, material_ore=gravel, purity=0.5), 2))
                c.add(ClusterDeposit(Vein(gold_gravel_ore, material_ore=gravel, purity=0.25), 2))

        with c.biomes(ocean_biomes):
            add_biome_standard(c, None, None, None, Vein(limestone))
Beispiel #15
0
marble = ch.marble
obsidian = mc.obsidian
shale = rc.quaried_stone
stone = mc.stone

# Config File ##########################################################################################################

config = ConfigFile("04_ad_astra.json")
with config as c:
    with c.dimension(mc.overworld):
        with c.biomes(desert_biomes):
            with c.distribution(bedrock_band):
                c.add(
                    PlateDeposit(
                        Vein(rc.saltpeter_spawner,
                             material_ore=mc.bedrock,
                             purity=10)))

            with c.distribution(surface_band):
                c.add(
                    PlateDeposit(Vein(sand_oil_clathrate,
                                      material_ore=mc.sand,
                                      purity=25),
                                 percent=20))

            with c.distribution(below_ground_band):
                c.add(LakeDeposit(Vein(mc.stone), crude_oil, 32, percent=25))

        with c.biomes(forest_cold_biomes):
            rich_vein = Vein(nickel_ore.weighted(75), iron_ore.weighted(20),
                             platinum_ore.weighted(4), iridium_ore.weighted(1))