Skip to content

Omnimods/Omnimods

Repository files navigation

Omnimods

Join our Discord for questions & discussions

Discord Banner 2

Translations for all Omnimods can be found in this crowdin project. Help us to translate them into your language!

https://crowdin.com/project/factorio-mods-localization

Adding Omnimatter compatibility to your mod:

(All functions are provided in our data stage, extraction functions are executed in data-updates and autoplace removal in data-final-fixes)

  • Add a resource to omnimatter (creates extraction recipes):

    • omni.matter.add_resource(resource_name, tier, mining_fluid)

      • resource_name : Name of the resource to create extarction recipes and technologies for.
      • tier : Technology tier where the first recipe unlocks (e.g. The first recipe of tier 1 unlocks at red science)
      • mining fluid (optional) : table of name and amount. The result requires to be refined with the specidifed mining fluid to get the defined ore.
      • Example: omni.matter.add_resource("iron-ore", 1)
    • Add a basic starter extraction recipe (Unlocked by default):

      • omni.matter.add_initial(ore_name, ore_amount, omnite_amount)
      • resource_name : Name of the resource to create extarction recipes and technologies for.
      • tier : Technology tier where the first recipe unlocks (e.g. The first recipe of tier 1 unlocks at red science)
      • mining fluid (optional) : table of name and amount. The result requires to be refined with the specidifed mining fluid to get the defined ore.
      • Example: omni.matter.add_initial("iron-ore", 1, 7)
  • Add a fluid to omnimatter (creates extraction recipes):

    • omni.matter.add_fluid(fluidname, tier, ratio)
  • Remove an ore from omnimatter (no extraction recipes will be created):

    • omni.matter.remove_resource(orename)
  • Remove a fluid from omnimatter (no extraction recipes will be created):

    • omni.matter.remove_fluid(fluidname)
  • Create an omnicium plate alloy recipe & item:

    • omni.matter.add_omnicium_alloy(name,platename,ingredientname)
  • Creates fluid extraction recipes & techs (omniwater --> fluid):

    • omni.matter.add_omniwater_extraction(mod, element, lvls, tier, gain, starter_recipe)
  • Get the tier of an ore that is already added to omnimatter;

    • omni.matter.get_ore_tier(orename)
  • Set the tier of an ore that is already added to omnimatter;

    • omni.matter.set_ore_tier(orename,tier)
  • Add initial extraction (starter/burner) recipes for an ore:

    • omni.matter.add_initial(orename,ore_amount,omnite_amount)
  • Add a resource to our autoplace removal blacklist (The resource will not be removed by us):

    • omni.matter.add_ignore_resource(name)
  • Remove a resource from our autoplace removal blacklist:

    • omni.matter.remove_ignore_resource(name)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages