Network Interface

The Network Interface was FilaSignal’s first relay. It still works and existing builds keep working, but for new builds a Network Repeater, a Redstone Controller and an Inventory Module are easier to use.
It does three jobs at once:
- relay: it links the computer to devices, up to 16 links;
- redstone ports: each side can be a named input or output;
- inventory faces: the owner can approve containers next to it, like an Inventory Module.
How to get it
Section titled “How to get it”
Network InterfaceConfigure
Section titled “Configure”In its form, type a side into Face and a name into Name, then select Input or Output for a redstone
port, or Inventory to approve a container (owner only). An empty name removes it. The commands
/filasignal port X Y Z FACE MODE NAME and /filasignal inventory X Y Z FACE NAME do the same.
Port names and inventory names are separate from device names, and unique within the network.
Drive programs
Section titled “Drive programs”It cannot run a program.
Program API
Section titled “Program API”Programs use its ports and inventories by name, through these functions:
redstone.read(alias)
Read a configured input or output port.
redstone.set(alias, strength)
Set an output port to an integer strength from 0 through 15.
redstone.from(alias)
Resolve an available redstone port alias.
door, err = redstone.from("door")inventory.from(alias)
Resolve a configured adjacent inventory alias.
storage, err = inventory.from("storage")Input ports raise events with the port’s name as a filter:
| Event | When it runs |
|---|---|
redstone.changed("name", strength) | Runs when a named input port, or a controller face such as "gate:north", changes. |
redstone.falling("name", strength) | Runs when a named input turns off. |
redstone.rising("name", strength) | Runs when a named input turns on. |
An interface also has the connected and disconnected events of every device, but no named() reference.
Example
Section titled “Example”on redstone.rising("button") { redstone.set("door", 15)}
on redstone.falling("button") { redstone.set("door", 0)}