Item components

Microcontroller

item component · builder

A [powered] [signal generator] [signal consumer] controller that evaluates inline computer-function logic from sibling signal inputs

You can use the following options with this command:

name <name> - renames the component
desc <description> - sets the description of the component
wattage <watts> - set power usage
discount <watts> - a wattage discount per quality
switchable - toggles whether players can switch this on
mountpower - toggles whether this machine draws power from its automation mount host when mounted
onemote <emote> - sets the emote when powered on. Use $0 for the machine.
offemote <emote> - sets the emote when powered down. Use $0 for the machine.
onprog <prog> - sets a prog to execute when the machine is powered on
offprog <prog> - sets a prog to execute when the machine is powered down
input add <variable> <sourcecomponent> - adds an input variable bound to a sibling signal source component's default signal endpoint
input remove <variable> - removes an input binding
logic - edits the controller logic in the multiline editor
logic <text> - sets the controller logic directly

Notes:

The controller logic must compile as a computer function and return a number.
Input variable names must be valid prog variable names and are automatically lower-cased.

← Back to Item components