Пример #1
0
 def convert(arg: OreListable) -> OreList:
     """Convert an orelist-able object into an actual OreList."""
     if arg is None:
         return None
     elif isinstance(arg, str):
         return OreList(Ore(arg))
     elif isinstance(arg, Ore):
         return OreList(arg)
     elif isinstance(arg, OreList):
         return arg
     else:
         ores = []
         for ore in arg:
             if isinstance(ore, Ore):
                 ores.append(ore)
         return OreList(*ores)
Пример #2
0
    def __init__(
        self,
        *ores: Iterable[Ore],
        material_ore: Optional[Ore] = None,
        name: Optional[str] = None,
        purity: int = 100,
    ):
        """
        Create a new vein with a certain name, base material, and collection of ores.

        Arguments:
            ores: an iterable collection of Ores to include in this vein
            material_ore: a single Ore used as filler for veins of less than 100% purity
            name: an alternate name to use in case the name of the first ore isn't desired
            purity: a value between 0–100 giving the percentage of the vein made of ore

        """
        self.ores = OreList.convert(ores)

        self.name = name if name is not None else self.ores.short_name
        self.material_ore = material_ore if material_ore is not None else Ore(
            "minecraft:stone", 0)
        self.purity = purity
Пример #3
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)
Пример #4
0
"""Define various ores from the ModularForceFieldSystem mod."""

from packconfig.oregen import Ore, Vein
from packconfig.oregen.data import vanilla as mc


# Fluids ###############################################################################################################

aerotheum_fluid = Ore("thermalfoundation:fluid_aerotheum")
crude_oil_fluid = Ore("thermalfoundation:fluid_crude_oil")
cryotheum_fluid = Ore("thermalfoundation:fluid_cryotheum")
ender_fluid = Ore("thermalfoundation:fluid_ender")
glowstone_fluid = Ore("thermalfoundation:fluid_glowstone")
mana_fluid = Ore("thermalfoundation:fluid_mana")
petrotheum_fluid = Ore("thermalfoundation:fluid_petrotheum")
pyrotheum_fluid = Ore("thermalfoundation:fluid_pyrotheum")
redstone_fluid = Ore("thermalfoundation:fluid_redstone")


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

# Clathrates
destabilized_redstone = Ore("thermalfoundation:ore_fluid", 2)
energized_netherrack = Ore("thermalfoundation:ore_fluid", 3)
gravel_oil_ore = Ore("thermalfoundation:ore_fluid", 1)
sand_oil_ore = Ore("thermalfoundation:ore_fluid", 0)
red_sand_oil_ore = Ore("thermalfoundation:ore_fluid", 5)
resonant_end_stone = Ore("thermalfoundation:ore_fluid", 4)

# Metals
aluminum_ore = Ore("thermalfoundation:ore", 4)
Пример #5
0
"""Define various ores from the Chisel mod."""

from packconfig.oregen import Ore, Vein

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

# Metals
copper_ore = Ore("railcraft:ore_metal", 0)
lead_ore = Ore("railcraft:ore_metal", 2)
nickel_ore = Ore("railcraft:ore_metal", 4)
silver_ore = Ore("railcraft:ore_metal", 3)
tin_ore = Ore("railcraft:ore_metal", 1)
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)
"""Define various ores from the Immersive Engineering  mod."""

from packconfig.oregen import Ore

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

copper_ore = Ore("immersiveengineering:ore", 0)
aluminum_ore = Ore("immersiveengineering:ore", 1)
lead_ore = Ore("immersiveengineering:ore", 2)
silver_ore = Ore("immersiveengineering:ore", 3)
nickel_ore = Ore("immersiveengineering:ore", 4)
uranium_ore = Ore("immersiveengineering:ore", 5)
Пример #7
0
"""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)
Пример #8
0
GRASSY = OreList(mc.grass, mc.dirt, mc.sand)
GRAVELLY = OreList(mc.gravel, mc.dirt, mc.sand)
HELLISH = OreList(mc.netherrack, mc.soul_sand, mc.nether_brick, mc.bedrock,
                  mc.stone)
MOLTEN = OreList(mc.lava)
SANDY = OreList(mc.dirt, mc.sand, mc.sandstone)
SNOWY = OreList(mc.dirt, mc.gravel, mc.ice, mc.sand, mc.snow)
STONY = OreList(mc.cobblestone, mc.stone)
SWAMPY = OreList(mc.dirt, mc.grass, mc.sand, mc.water)

MOUNTAINOUS = OreList(
    mc.cobblestone,
    mc.stone,
    mc.grass,
    mc.gravel,
    Ore("chisel:marble2"),
    Ore("minecraft:stained_hardened_clay"),
    Ore("minecraft:snow_layer"),
)

# Biome Sets ###########################################################################################################

beach_cold = BiomeSet("Cold Beach", blocks=SNOWY)
beach_sandy = BiomeSet("Beach", blocks=OreList(mc.grass, mc.sand))
beach_gravel = BiomeSet("OceanSpires", "Stone Beach", blocks=GRAVELLY)
desert = BiomeSet("Desert", "Desert M", "DesertHills", blocks=SANDY)
forest_canopy = BiomeSet("Roofed Forest", "Roofed Forest M", blocks=CARPETED)
forest_hills = BiomeSet("Birch Forest Hills",
                        "Birch Forest Hills M",
                        "ForestHills",
                        blocks=CARPETED)
"""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)
Пример #10
0
anywhere_band = UniformDistribution("anywhere", 0, 256)
coal_band = UniformDistribution("coal_band", 0, 128)
diamond_band = UniformDistribution("diamond_band", 0, 16)
emerald_band = UniformDistribution("emerald_band", 4, 28)
gold_band = UniformDistribution("gold_band", 0, 32)
iron_band = UniformDistribution("iron_band", 0, 64)
lapis_band = NormalDistribution("lapis_band", 16, 16)
mesa_band = UniformDistribution("mesa_band", 32, 80)
quartz_band = UniformDistribution("quartz_band", 10, 118)
stone_variants_band = UniformDistribution("stone_variants_band", 0, 80)

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

# Common Materials
andesite = Ore("minecraft:stone", variant="andesite")
bedrock = Ore("minecraft:bedrock")
bone = Ore("minecraft:bone_block")
clay = Ore("minecraft:clay")
cobblestone = Ore("minecraft:cobblestone")
diorite = Ore("minecraft:stone", variant="diorite")
dirt = Ore("minecraft:dirt")
endstone = Ore("minecraft:end_stone")
granite = Ore("minecraft:stone", variant="granite")
grass = Ore("minecraft:grass")
gravel = Ore("minecraft:gravel")
ice = Ore("minecraft:ice")
mycelium = Ore("minecraft:mycelium")
netherrack = Ore("minecraft:netherrack")
nether_brick = Ore("minecraft:nether_brick")
obsidian = Ore("minecraft:obsidian")
Пример #11
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)
"""Define various ores from the Immersive Engineering  mod."""

from packconfig.oregen import Ore

# Fluids ###############################################################################################################

crude_oil_fluid = Ore("immersivepetrolium:fluid_crude_oil")
Пример #13
0
"""Define various ores from the Chisel mod."""

from packconfig.oregen import Ore


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

basalt = Ore("chisel:basalt2", 7)
limestone = Ore("chisel:limestone2", 7)
marble = Ore("chisel:marble2", 7)
Пример #14
0
)

vanilla.tundra_biomes.include(
    "advancedrocketry:crystalchasms",
)

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)
Пример #15
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)
Пример #16
0
"""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)
Пример #17
0
            b.add(giraffe.configure(2, 2))
            b.add(chimp.configure(1, 2))

    with b.active_periods(NIGHT):
        with b.spawn(32, 90):
            b.add(meerkat.configure(8, 16))
            b.add(elephant.configure(4, 4))
            b.add(giraffe.configure(2, 2))
            b.add(rhino_black.configure(1, 2))

    with b.active_periods(TWILIGHT):
        with b.spawn(8, 45):
            b.add(lion.configure(1, 2))

village_blocks = [
    Ore("minecraft:grass_path"), mc.dirt, mc.grass, mc.gravel,
    Ore("minecraft:log")
]
with b.location(
        Location(settled.with_blocks(village_blocks), structure="Village")):
    with b.active_periods(DAY):
        with b.spawn(20, 1):
            b.add(chicken.configure(40, 1))
            b.add(pig.configure(30, 1))
            b.add(cow.configure(15, 1))
            b.add(donkey.configure(10, 1))
            b.add(iron_golem.configure(1, 1))

    with b.active_periods(NIGHT):
        with b.spawn(10, 1):
            b.add(rat.configure(20, 4))