Mother DocsMother Docs
Buy me a Coffee
Steam Workshop
Discord
  • Mother OS (Ingame Script)
  • Mother GUI
  • Mother Autopilot System (MAPS)
  • Mother Core (Script Framework)
  • Cheatsheet
  • Brand Guidelines
Buy me a Coffee
Steam Workshop
Discord
  • Mother OS (Ingame Script)
  • Mother GUI
  • Mother Autopilot System (MAPS)
  • Mother Core (Script Framework)
  • Cheatsheet
  • Brand Guidelines
  • Cheatsheet
  • Mother OS (Ingame Script)
    • Getting Started

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

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

      • Air Vent Module
      • Battery Module
      • Terminal Block Module
      • Cockpit Module
      • Connector Module
      • Display Module
      • Door Module
      • Gas Tank Module
      • Hinge Module
      • Landing Gear Module
      • Light Module
      • Piston Module
      • Programmable Block Module
      • Rotor Module
      • Screen Module
      • Sensor Module
      • Sorter Module
      • Sound Block Module
      • Thruster Module
      • Timer Block Module
      • Wheel Module
    • Compatibility
    • Examples
  • Mother GUI
    • Getting Started

      • Installation
      • Configuration
    • Commands
    • Menus
    • Views
  • Mother Autopilot System (MAPS)
    • Getting Started

      • Upgrade Guide
      • Installation
    • Modules

      • Flight Planning Module
      • Map Module
      • Flight Control Module
      • Attitude Module
      • Docking Module
  • Mother Core (Script Framework)
    • Getting Started

      • Upgrade Guide
      • Installation
      • Architecture Overview
      • Managing Script Size & Complexity
    • Building A Module
    • Mother CLI (Console)
    • Core Modules
      • Activity Monitor
      • Almanac
      • Block Catalogue
      • Clock
      • Command Bus
      • Configuration
      • Event Bus
      • Intergrid Message Service
      • Local Storage
      • Log
      • Terminal
    • Utilities

      • Color Helper
      • Number Helper
      • Security
      • Serializer
    • Tutorials
  • Powered By Mother
  • Brand Guidelines

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
    • block/on
    • block/off
    • block/toggle
    • block/action
    • block/actions
    • block/config
    • block/rename
    • tag/get
    • tag/set
  • Hooks

Commands

block/on

Turn the block on.

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

Example

Terminal
block/on DrillPiston;

block/off

Turn the block off.

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

Example

Terminal
block/off DrillPiston;

block/toggle

Toggle the block on or off.

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

Example

Terminal
block/toggle DrillPiston;

block/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.

block/actions

Print all available terminal actions for a block. Use this to discover actions for the block/action command.

block/actions <Block>

Example

Terminal
block/actions DrillPiston;

block/config

Set a value in the block's custom data.

block/config <Block|Group> <Section.Key> <Value>

Example

Let's update the default scale of our MapLCD:

Terminal
; set the scale to 200m
block/config MapLCD general.mapScale 200

block/rename

Rename a block by setting its custom name.

block/rename <Block|Group> <NewName>

Example

Let's rename our drill piston to something more descriptive:

Terminal
block/rename "Piston 1" DrillPiston;

tag/get

Get a all blocks with a specific tag. This will print a list of blocks to the terminal window.

tag/get <Tag>

Example

Let's get all blocks with the #cockpit-displays tag:

Terminal
tag/get #cockpit-displays;

tag/set

Set a tag on a block or group of blocks.

tag/set <Block|Group> <Tag>

Example

Let's tag our cockpit displays so that we can easily set them to night mode:

Terminal
tag/set CockpitDisplays #cockpit-displays;

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: 5/2/26, 9:09 PM
Contributors: Luke Morrison, lukejamesmorrison
Prev
Battery Module
Next
Cockpit Module