Skip to content

feature: refined storage compat - #581

Draft
Roelymole wants to merge 12 commits into
mainfrom
feature/refined-storage-compat
Draft

feature: refined storage compat#581
Roelymole wants to merge 12 commits into
mainfrom
feature/refined-storage-compat

Conversation

@Roelymole

Copy link
Copy Markdown
Member

This PR depends on MachineLib#26 which provides a way for machines to define a custom implementation of how items/fluids/energy should be inserted. The motivation behind this is to make autocrafting with the Refined Storage mod possible and to a certain extent using other methods of inserting resources such as vanilla hoppers.

For example, a custom insert handler has been defined for the circuit fabricator in order to distribute silicon evenly between the two slots.

A much more involved example is the (electric) compressor, which attempts to find a compressing recipe that matches the current inputs and then rearrange the items into the correct slots in order to craft this recipe (functional, but still work in progress).

The other Galacticraft machines should work by default without needing any custom handling, but this can be added later as required.

Roelymole added 12 commits June 14, 2026 19:34
…compat to split silicon between the two slots in the circuit fabricator
…ressor into a valid recipe to allow for autocrafting
…Handler functional interface

Add the AbstractCompressorBlockEntity class to do so
…handle the case where multiple different item stacks match the same ingredient

i.e. Using both coal and charcoal to make compressed steel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant