Table of Contents

Signals

Signals are messages sent to a computer from some external source and can be used for many purposes. They always have at least a name, and may have any number of (simple) parameters. Note that computers may also queue signals on themselves.

Signals can be consumed using computer.pullSignal() or its convenience wrapper, event.pull().

The following lists all signals triggered by components and the built-in libraries. They are listed in the following format: name(arg: type, ...), meaning you would pull them like local name, arg, ... = event.pull(). For example, to pull a modem message:

snippet.lua
local event = require("event")
local _, localNetworkCard, remoteAddress, port, distance, payload = event.pull("modem_message")
print("Received data '" .. tostring(payload) .. "' from address " .. remoteAddress ..
      " on network card " .. localNetworkCard .. " on port " .. port .. ".")
if distance > 0 then
  print("Message was sent from " .. distance .. " blocks away.")
end

Computer

Screen

Keyboard

Redstone Cards and I/O Block

Motion Sensor Block

Network Cards

Robots

Abstract Bus Card

from Stargate Tech 2.

Carriage

from Redstone in motion / remain in motion.

Important: This component has moved to the OpenComponents addon.
Contents of OpenComponents have already been added into OpenComputers.

Contents