Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Import/Export Items #1

Open
elijahlorden opened this issue Sep 10, 2024 · 0 comments
Open

[Request] Import/Export Items #1

elijahlorden opened this issue Sep 10, 2024 · 0 comments

Comments

@elijahlorden
Copy link

I would like to suggest a couple new methods for this peripheral.

importItems(side, type, maxcount) - Import up to maxcount items of a specific type from an inventory adjacent to the peripheral.
importAllItems(side) - Import all items from an inventory adjacent to the peripheral.

exportItems(side, type/id, maxcount) - Export items of a specific type or from an object (whichever is easier to implement) to an inventory adjacent to the peripheral.

These functions or something equivalent would allow for programmatic import/export of items from ME systems. This could currently be implemented using interfaces and turtles, but adding the functionality to this mod would remove the need to have a bunch of different turtles for exporting items.

If lag is a concern, you could rate-limit calls to the functions or limit the total number of itemstacks moved in a single tick.

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

No branches or pull requests

1 participant