Skip to content

Network Interface

The Network Interface block
Network Interface. Asset render of the block model, not an in-game screenshot.

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.
Network Interface

Shapeless: put the ingredients anywhere in the grid. Older device, kept for existing builds. Ingredients: 1 × Copper Ingot, 1 × Redstone, 1 × Iron Ingot. It appears in the recipe book once you pick up one of its ingredients.

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.

It cannot run a program.

Programs use its ports and inventories by name, through these functions:

redstone.read(alias)

Read a configured input or output port.

Parameters: alias: string. Gives: number, or an error. Capability: redstone.read. Cost: 12 operations.

redstone.set(alias, strength)

Set an output port to an integer strength from 0 through 15.

Parameters: alias: string, strength: number. Gives: bool, or an error. Capability: redstone.write. Cost: 30 operations.

redstone.from(alias)

Resolve an available redstone port alias.

Parameters: alias: string. Gives: RedstonePort, or an error. Errors: device.unavailable, host.denied, port.unknown, world.unloaded. Capability: redstone.read. Cost: 16 operations.

door, err = redstone.from("door")

inventory.from(alias)

Resolve a configured adjacent inventory alias.

Parameters: alias: string. Gives: Inventory, or an error. Errors: device.unavailable, host.denied, inventory.limit, inventory.missing, inventory.stale, inventory.unavailable, inventory.unknown, inventory.unsupported, world.unloaded. Capability: inventory.read. Cost: 16 operations.

storage, err = inventory.from("storage")

Input ports raise events with the port’s name as a filter:

EventWhen 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.

on redstone.rising("button") {
redstone.set("door", 15)
}
on redstone.falling("button") {
redstone.set("door", 0)
}