About This File

This is a small API that augments how recipes work. The Ingredient class now has a fourth constructor argument, a list of prefab tags. Ingredients with this argument specified will only qualify to be used in the recipe if the prefab has all of the specified tags.

Example:

Recipe("goldnugget", {Ingredient("rocks", 4, nil, {"magic"})}, RECIPETABS.REFINE, TECH.MAGIC_TWO)

This recipe allows the crafting of four rocks into one gold nugget, but only if the rocks have the tag "magic".

NOTE: This mod overwrites the functions CanBuild and RemoveIngredients in the builder component.

THIS FILE IS DISCONTINUED. THE MAIN PROJECT CAN BE FOUND HERE.


What's New in Version 1.0   See changelog

Released

  • Added tag recognition to recipes.



User Feedback

Recommended Comments

I'm interested in why you made this. It seems like a less significant change, compared to things like recipes no longer being indexed by their product, proper support for more than three ingredients, etc.

Share this comment


Link to comment
Share on other sites

This was made in anticipation of a larger project, wherein I am collecting tweaks and shortcuts necessary for various mods into a larger API-esque thing.

Share this comment


Link to comment
Share on other sites

I'm interested in why you made this. It seems like a less significant change, compared to things like recipes no longer being indexed by their product, proper support for more than three ingredients, etc.

(See above)

Share this comment


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now