Mother DocsMother Docs
Buy me a Coffee
Steam Workshop
Discord
  • Cheatsheet
  • Announcements
  • Mother OS (Ingame Script)
  • Mother GUI
  • Mother Autopilot System (MAPS)
  • Printed by Mother
  • Mother Core (Script Framework)
  • Mother Dev Tools
  • Motherland
  • Powered by Mother
  • Brand Guidelines
Buy me a Coffee
Steam Workshop
Discord
  • Cheatsheet
  • Announcements
  • Mother OS (Ingame Script)
  • Mother GUI
  • Mother Autopilot System (MAPS)
  • Printed by Mother
  • Mother Core (Script Framework)
  • Mother Dev Tools
  • Motherland
  • Powered by Mother
  • Brand Guidelines
  • Cheatsheet
  • Announcements
  • Mother OS (Script)
    • Getting Started

      • Upgrade Guide
      • Installation
      • Command Line Interface (CLI)
      • Conditional Logic
      • Configuration
    • Modules
      • Activity Monitor
      • Air Vent Module
      • Almanac
      • AutoLCD Module
      • Battery Module
      • Block Catalogue
      • Cockpit Module
      • Connector Module
      • Display Module
      • Door Module
      • Gas Tank Module
      • Hinge Module
      • Intergrid Message Service
      • Jump Drive Module
      • Landing Gear Module
      • Light Module
      • Local Storage
      • Merge Block Module
      • Piston Module
      • Programmable Block Module
      • Rotor Module
      • Screen Module
      • Sensor Module
      • Sorter Module
      • Sound Block Module
      • Terminal Block Module
      • Thruster Module
      • Timer Block Module
      • Wheel Module
    • Compatibility
    • Troubleshooting
    • Examples
  • Mother GUI (Script)
    • Getting Started

      • Upgrade Guide
      • Installation
      • Configuration
    • Commands
    • Menus
    • Views
    • Examples
  • Mother Autopilot System (MAPS) (Script)
    • Getting Started

      • Upgrade Guide
      • Installation
    • Modules

      • Flight Planning Module
      • Map Module
      • Flight Control Module
      • Attitude Module
      • Docking Module
  • Printed by Mother (Script)
    • Getting Started

      • Installation
      • Configuration
    • Commands
    • Print Jobs
    • Alignment
    • Hooks
    • Examples
  • 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
      • Conditions
      • Configuration
      • Event Bus
      • Intergrid Message Service
      • Local Storage
      • Log
      • Terminal
    • Utilities

      • Color Helper
      • Number Helper
      • Security
      • Serializer
    • Testing
    • Tutorials
  • Mother Dev Tools
  • Motherland
  • Powered By Mother
  • Brand Guidelines

Connector Module

The connector module allows the user to control connectors on the grid.

Commands are provided by Mother OS

Mother OS provides the connector/lock, connector/unlock and connector/toggle commands. As of Mother Core 1.2 they are no longer part of Core, so Mother GUI and MAPS do not provide them. Connector properties and hooks are still available in every script.

  • Commands
    • lock
    • unlock
    • toggle
  • Properties
  • Hooks

Commands

lock

Lock a connector or group of connectors.

connector/lock <Connector|Group>

Example

Terminal
connector/lock DockingConnector

unlock

Unlock a connector or group of connectors.

connector/unlock <Connector|Group>

Example

Terminal
connector/unlock DockingConnector

toggle

Toggle the lock state of a connector or group of connectors.

connector/toggle <Connector|Group>

Example

Terminal
connector/toggle DockingConnector

Properties

Tips

Properties and predicates are very useful in conditions. A property is compared with an operator and a value (status == connectable), while a predicate stands alone (connected). See Conditional Logic to use them in when rules and if steps.

Connector properties and predicates are provided by Mother Core, so they work in every script on the construct, including Mother GUI.

PropertyDescription
statusunconnected, connectable or connected.
PredicateTrue when
connectedThe connector is locked to another connector.
connectableThe connector is in range and ready to lock.
unconnectedThe connector is not locked and not in range.
disconnectedThe connector is not locked (status == unconnected).

Compare a property

Mother > Custom Data
[rules]
DockReady=
| when DockConnector status == connectable;
|   light/color "Dock Light" yellow;

Use a predicate

Mother > Custom Data
[rules]
Docked=
| when DockConnector connected --for=2;
|   battery/charge Batteries --backup;
| else;
|   battery/auto Batteries;

Hooks

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

KeyTrigger
onLockRun when a connector locks.
onUnlockRun when a connector unlocks.
onReadyRun when a connector is ready to lock.

Example

Imagine our connector has a status light we want to view elsewhere:

DockConnector > Custom Data
[hooks]
onLock=light/color "Dock Light" red;
onUnlock=light/color "Dock Light" green;

or

Mother > Custom Data
[hooks]
DockConnector.onUnlock=light/color "Dock Light" green;
"Fuel Connector".onLock=tank/stockpile FuelTanks;
Last Updated: 10/31/26, 10:26 PM
Contributors: Luke Morrison, lukejamesmorrison
Prev
Cockpit Module
Next
Display Module