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

Support fluid tanks #13

Closed
fechan opened this issue May 6, 2024 · 1 comment
Closed

Support fluid tanks #13

fechan opened this issue May 6, 2024 · 1 comment
Labels

Comments

@fechan
Copy link
Owner

fechan commented May 6, 2024

You can check if a peripheral supports fluid_storage by checking if it has the fluid_storage function. https://tweaked.cc/generic_peripheral/fluid_storage.html It's nil if it doesn't versus if it's empty, then it's an empty table.

The easiest way to implement is probably to initialize a new Group when a peripheral is added with an optional attribute fluid. If the CC pipe manager sees a pipe between fluid groups, it should use pushFluid() instead.

The editor will need to know not to combine fluid groups with non-fluid groups.

@fechan fechan added enhancement New feature or request ComputerCraft editor labels May 6, 2024
@fechan
Copy link
Owner Author

fechan commented Jul 25, 2024

This PR adds support for fluid tanks and fluid piping.

@fechan fechan closed this as completed Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant