Ender Fluid Control (efc)

A computer craft program for monitoring liquids stored on an ender tank network.

Installation

The easiest way to install efc is via packman with packman install aaronmallen/efc

Basic Usage

efc utilizes what is called a Watcher to monitor your ender tank fluid network. To use efc you will need to put an ender tank on any side of the computer that will be used to watch fluids in your ender tank network, read more on creating watchers below. Additionally you may want to provide the computer access to some form of redstone network that supports channels. This will be used to fill, or purge the tank based on what type of watchers you create. If you do not want efc to manage the filling and purging of liquids in your ender tank network then you will not need to provide a redstone network. Additionally the network used for purging and filling can be on the same side; however, if you do have it on the same side be sure the redstone channels you define don't conflict with one and other. If you wish to purge fluids you will want to include some form of liquid voiding in your setup. See more about limiters below.

Initializing EFC

efc init


The first time you use efc you'll want to run efc init which will walk you through the basic setup of efc. You will be asked to provide the side of the computer the control ender tank is on, as well as the purge, and fill sides for the redstone network. The purge and fill sides maybe on the same side of the computer. If you change the configuration around your computer you can simply update by running efc init again.

Creating Watchers

efc create <watch-type>


There are three (3) different types of watchers you can create: reporter,filler, and limiter. Running efc create will walk you through creating a watcher. You will be asked to name of the watcher you are trying to create, as well as what ender tank channels this watcher should watch. The name of the watcher should be unique. You may want a bucket of the desired liquid at the ready if the ender tank is currently empty.

Watcher Properties

Each watcher has the following properties that you will be asked questions by efc create to help populate:
  • name The name of the Watcher… this should be unique to each watcher.
  • type The type of the Watcher. Valid types are: reporter, filler, limiter
  • liquid The type of liquid typically stored in the Watcher. This will be automatically populated during the createprocess.
  • threshold The threshold to try and keep in the ender tank. The create process will ask for the threshold in buckets, but will store it in millibuckets.
  • channels.left The left channel color of the Watcher.
  • channels.middle The middle channel color of the Watcher.
  • channels.right The right channel color of the Watcher.
  • channels.redstone The redstone channel color of the Watcher.

Reporter

efc create reporter


The reporter watcher type simply reports the status of the specified ender tank channel on the terminal of the computer. A reporter watcher will never attempt to purge or fill the ender tank channel.

Filler

efc create filler


The filler watcher type will attempt to ensure that the specified ender channel is filled to the specified threshold. In addition to the normal questions asked when creating a watcher you will be asked to provide the desired redstone channel to emit on when the ender tank needs to be filled, as well as the desired threshold to keep in the tank measured in buckets. The expectation is that when efc emits a redstone signal on the specified redstone channel a machine or some other mechanism will be activated by that signal to provide liquid to the tank.

Limiter

efc create limiter


The limiter watcher type will attempt to purge liquids on the specified ender channel when the ender tank exceeds the specified threshold. In addition to the normal questions asked when creating a watcher you will be asked whether or not efc should emit on a specific redstone channel, and if so what channel to emit on. Additionally you will be asked to specifiy a threshold for the amount of buckets to try and keep in the ender tank. The expectation is that when efc emits a redstone signal on the specified channel or side a fluid conduit or pipe will activate on the control tank that leads into some form of fluid voiding mechanism (such as a fluid trashcan from Extra Utilites)

Running EFC

efc run [startup]


Once you have successfully setup all the watchers you wish to create you can start the watching process by running efc run if startup is specified as an additional argument efc will write a startup script to run efc on computer startup and reboot the computer. You can stop this process at any time by holding down ctrl + t while in the computer terminal.

Checkout The Project: https://github.com/a...mputercraft-efc
Bugs and feature requests: https://github.com/aaronmallen/computercraft-efc/issues