Mother DocsMother Docs
Buy me a Coffee
Steam Workshop
Discord
  • Mother OS (Ingame Script)
Buy me a Coffee
Steam Workshop
Discord
  • Mother OS (Ingame Script)
  • Mother OS (Ingame Script)
    • Getting Started

      • Upgrade Guide
      • Installation
      • Command Line Interface (CLI)
      • Configuration
      • Modules
    • Core Modules

      • Activity Monitor
      • Almanac
      • Block Catalogue
      • Local Storage
      • Security
      • Intergrid Message Service
    • Extension Modules

      • Air Vent Module
      • Battery Module
      • Terminal Block Module
      • Cockpit Module
      • Connector Module
      • Display Module
      • Docking Module
      • Door Module
      • Flight Control Module
      • Gas Tank Module
      • Gyroscope Module
      • Hinge Module
      • Landing Gear Module
      • Light Module
      • Flight Planning Module
      • Piston Module
      • Programmable Block Module
      • Rotor Module
      • Sensor Module
      • Sound Block Module
      • Thruster Module
      • Timer Block Module
    • Command Cheatsheet
    • Compatibility
    • Examples
  • Powered By Mother

Terminal Block Module

The Terminal Block Module allows the user to interact with terminal blocks on the grid. All blocks accessible via Block Catalogue are considered terminal blocks.

  • Commands
    • on
    • off
    • action
  • Hooks

Commands

on

Turn the block on.

block/on <Block|Group> [--options]

Example

Terminal
block/on DrillPiston;

off

Turn the block off.

block/off <Block|Group> [--options]

Example

Terminal
block/off DrillPiston;

action

Run a toolbar action on the block. This is more expensive than a traditional command and Malware advises against it. Use this command sparingly to access automations that Mother does not access natively.

block/action <Block|Group> <Action> <...ActionArgs>

Example

We want to run the Set and Move action on a piston. It accepts two arguments: the distance to move and the speed of the piston. These values are entered in the same order you would normally enter them via the ingame menus.

Terminal
# set the piston to move to 5m distance at 2.5m/s
block/action DrillPiston SetAndMove 5.0 2.5;

Tips

You can view a complete list of block actions here.

Hooks

The following hooks can be define in the block's Custom Data, and will be triggered when the corresponding command is called:

KeyTrigger
onOnActivated by block/on command
onOffActivated by block/off command

Example

DrillPiston > Custom Data
[hooks]
onOn=light/color DrillIndicatorLight green;
onOff=light/color DrillIndicatorLight red;

or

Mother > Custom Data
[hooks]
DrillPiston.onOn=light/color DrillIndicatorLight green;
"Emergency Batteries".onOff=light/blink "Battery Indicators" off;
Last Updated:: 4/15/25, 11:05 PM
Contributors: Luke Morrison
Prev
Battery Module
Next
Cockpit Module