I would like to make a power recipe that consumes a liquid and produces a solid byproduct. I haven't been able to find a way to do this with the API except through complex compound entity solutions, and I was hoping in 2.0 that this would change.
There are a variety of changes to the API that each individually would natively support my idea:
- Allow fluids to have a burnt_result similar to ItemPrototype per amount of fluid consumed and give Generators an item box that contains that burnt result. (PS: Would also be nice for an item's burnt_result to be possibly a fluid, but that might break some fluidbox stuff?)
- Allow assembling machines to have a negative energy_usage, so that I can make my power recipe selectable. Currently it is bounded to positive values and so assembling machines can never produce power.
- Allow the new FusionGenerator prototype, which consumes fluids and produces fluid byproducts, to arbitrarily consume and produce solids as well. This is probably my preferred because it fits the established pattern y'all set with SA.
- Allow a Generator or similar to select a recipe, and the building only generates while the recipe is producing, and the recipe speed varies based on power need.
Here is the recipe chain I would like to support, spoilered because it's not super relevant to the technical request and provides further context if you care.
collapse
Thank you for your consideration!