Giter Site home page Giter Site logo

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)

omnimods's Projects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.