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

Command Cheatsheet

Commands belong to Modules. Any command registered in a module will be made available by Mother to the Programmable Block terminal.

The following is a list of commands available in the default modules.

  • Air Vents
    • vent/pressurize
    • vent/depressurize
  • Batteries
    • battery/charge
    • battery/discharge
    • battery/auto
    • battery/toggle
  • Blocks
    • block/on
    • block/off
  • Core
    • help
    • clear
    • ping
    • wait
    • purge
    • dock
  • Cockpits
    • dampeners/on
    • dampeners/off
    • handbrake/on
    • handbrake/off
  • Connectors
    • connector/lock
    • connector/unlock
    • connector/toggle
  • Doors
    • door/open
    • door/close
    • door/toggle
  • Flight Control System
    • fcs/start
    • fcs/stop
  • Flight Planning
    • nav/set-flight-plan
  • Gas Tanks
    • tank/stockpile
    • tank/share
    • tank/toggle
  • Hinges
    • hinge/rotate
    • hinge/lock
    • hinge/unlock
    • hinge/reset
    • hinge/speed
  • Landing Gear
    • gear/lock
    • gear/unlock
    • gear/toggle
    • gear/auto
  • Lights
    • light/color
    • light/blink
    • light/reset
  • Local Storage
    • get
    • set
  • Rotors
    • rotor/rotate
    • rotor/lock
    • rotor/unlock
    • rotor/reset
    • rotor/speed
  • Pistons
    • piston/distance
    • piston/stop
    • piston/reset
    • piston/speed
  • Programmable Block
    • pb/run
  • Screens
    • screen/print
  • Sound Blocks
    • sound/play
    • sound/stop
    • sound/set
  • Timer Blocks
    • timer/start
    • timer/trigger
    • timer/stop

Air Vents

Air Vent Module

vent/pressurize

Set the air vent to pressurize mode.

vent/pressurize <AirVent|Group>

vent/depressurize

Set the air vent to pressurize mode.

vent/depressurize <AirVent|Group>

Batteries

Battery Module

battery/charge

Set the battery to Recharge mode.

battery/charge <Battery|Group> [--options]

battery/discharge

Set the battery to Discharge mode.

battery/discharge <Battery|Group> [--options]

battery/auto

Set the battery to Auto mode.

battery/auto <Battery|Group> [--options]

battery/toggle

Toggle the battery between Auto, Recharge and Discharge mode.

battery/toggle <Battery|Group> [--options]

Blocks

Block Module

All terminal blocks can be updated using the following commands:

block/on

Turn the block on.

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

block/off

Turn the block off.

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

Core

help

Print all commands in the Programmable Block terminal.

help

clear

Clear the Programmable Block terminal window.

clear

ping

Almanac

Ping all grids on the network and update the Almanac.

ping

wait

Command Line Interface

Delay a command or routine for execution. This can be used remotely as well.

wait <seconds>

Example

Terminal
# Light turns red, then after 5 seconds, thew light turns green
light/color IndicatorLight red; wait 5; light/color IndicatorLight green;

purge

Almanac, LocalStorage

Purge modules of data. This can be used to reset module data like the Almanac and LocalStorage.

purge <modules,> [--options]

Available Modules:

ModuleDescription
*Purge all purgable modules.
almanacPurge the Almanac.
storagePurge LocalStorage.

Use *, or list one or more modules separated by commas ,.

Options

OptionValuesDescription
forcefalse, trueActs as safeguard for purging operation. Must be included.

To purge all modules, you can use the following command:

Terminal
purge * --force

To purge specific modules, you can use the following command:

Terminal
purge almanac,storage --force

dock

Docking Module

Dock with a grid and specify optional connectors. If you do not provide a connector, the grids will automatically select the connectors to use. This is most useful when you are building drones, and utility vehicles with only one connector.

dock <Grid Name> [--options]

Options

OptionValuesUnitDescription
localstringThe name of the connector you wish to use on the local grid.
remotestringThe name of the connector you wish to use on the remote grid.

Example

We want to dock with a grid named Mothership using the local grid's connector named MainConnector, and the remote grid's connector named Connector - MS.P1.

Terminal
# Specify both connectors by name
dock Mothership --local=MainConnector --remote="Connector - MS.P1";

# If there is one connector on our grid, we only specify the remote connector
dock Mothership --remote="Connector - MS.P1";

# Or we let the grids decide which connectors to use
dock Mothership;

Cockpits

Cockpit Module

dampeners/on

Turn on thrust dampeners. By default, this command will use your Main cockpit. Otherwise, you may use an optional argument to specify a cockpit.

dampeners/on <Cockpit|Group>

Example

Terminal
# turn on the dampeners of the Main cockpit
dampeners/on

# turn on dampeners for a specific cockpit
dampeners/on RearCockpit

dampeners/off

Turn off thrust dampeners. By default, this command will use your Main cockpit. Otherwise, you may use an optional argument to specify a cockpit.

dampeners/off <Cockpit|Group>

Example

Terminal
# turn off the dampeners of the Main cockpit
dampeners/off

# turn off dampeners for a specific cockpit
dampeners/off RearCockpit

handbrake/on

Turn on the handbrake. By default, this command will use your Main cockpit. Otherwise, you may use an optional argument to specify a cockpit.

handbrake/on <Cockpit|Group>

Example

Terminal
# turn on the handbrake of the Main cockpit
handbrake/on
# turn on handbrake for a specific cockpit
handbrake/on RearCockpit

handbrake/off

Turn off the handbrake. By default, this command will use your Main cockpit. Otherwise, you may use an optional argument to specify a cockpit.

handbrake/off <Cockpit|Group>

Example

Terminal
# turn off the handbrake of the Main cockpit
handbrake/off
# turn off handbrake for a specific cockpit
handbrake/off RearCockpit

Connectors

Connector Module

connector/lock

Lock a connector or group of connectors.

connector/lock <Connector|Group>

connector/unlock

Unlock a connector or group of connectors.

connector/unlock <Connector|Group>

connector/toggle

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

connector/toggle <Connector|Group>

Doors

Door Module

door/open

Open a door or group of doors.

door/open <Door|Group>

door/close

Close a door or group of doors.

door/close <Door|Group>

door/toggle

Toggle the open state of a door or group of doors.

door/toggle <Door|Group>

Flight Control System

Flight Control Module

fcs/start

Engage the autopilot system, enabling the grid to fly autonomously if a flight plan is loaded.

fcs/start [--options]

Options

OptionValuesUnitDescription
speed0 - maxm/sSet the maximum speed of the grid.

fcs/stop

Disengage the autopilot system, halting the grid.

fcs/stop

Flight Planning

Flight Planning Module

nav/set-flight-plan

Set the active flight plan in the navigation system. Combine with fcs/start to begin flying.

nav/set-flight-plan <FlightPlanString> [--options]

Gas Tanks

Tank Module

tank/stockpile

Set the Tank Stockpile to on.

tank/stockpile <Tank|Group> [--options]

tank/share

Set the Tank Stockpile to off. The tank is now sharing its contents with your grid.

tank/share <Tank|Group> [--options]

tank/toggle

Toggle the Tank Stockpile between on and off.

tank/toggle <Tank|Group> [--options]

Hinges

Hinge Module

hinge/rotate

Rotate a hinge or group of hinges to a specific angle between -90 degrees and 90 degrees.

hinge/rotate <Hinge|Group> <Angle> [--options]

Options

OptionValuesUnitDescription
speed-5.0 - 5.0RPMSet the speed of the hinge. Negative values will reverse the hinge. Default is 1 RPM.

hinge/lock

Lock a hinge or group of hinges.

hinge/lock <Hinge|Group>

Options

OptionValuesUnitDescription
stopfalse, trueboolSet the hinge's velocity to 0 when locking.

hinge/unlock

Unlock a hinge or group of hinges.

hinge/unlock <Hinge|Group>

hinge/reset

Reset a hinge or group of hinges to their original position (0 degrees).

hinge/reset <Hinge|Group>

hinge/speed

Set the speed of a hinge or group of hinges in RPM.

hinge/speed <hinge|Group> <Speed> <Options>

Options

OptionValuesUnitDescription
addIndicates that the provided speed should be added to the current speed. Allows increment speed changes while in motion.
subIndicates that the provided speed should be subtracted from the current speed. Allows decremental speed changes while in motion.

Landing Gear

Landing Gear Module

gear/lock

Lock a Landing Gear or group of Landing Gear.

gear/lock <LandingGear|Group>

gear/unlock

Unlock a Landing Gear or group of Landing Gear.

gear/unlock <LandingGear|Group>

gear/toggle

Toggle the lock state of a Landing Gear or group of Landing Gear between Locked nad Unlocked.

gear/toggle <LandingGear|Group>

Note

For more info about Landing Gear states, see LandingGearMode in MDK-SE.

gear/auto

Set the AutoLock state of a Landing Gear or group of Landing Gear.

gear/auto <LandingGear|Group> <true|false>

Lights

Light Module

light/color

Set the color of a light or group of lights. The color of the light is RGB ie. 255,255,255.

light/color <Light|Group> <color>

You have access to the following colors which may be used in place of their RGB values:

NameRGBHexidecimal
red255,0,0FF0000
green0,255,000FF00
blue0,0,2550000FF
yellow255,255,0FFFF00
orange255,165,0FFA500
cyan0,255,25500FFFF
magenta255,0,255FF00FF
white255,255,255FFFFFF
black0,0,0000000

Example

Terminal
# by name
light/color LandingLight red;
# by RGB
light/color LandingLight 255,0,0;

light/blink

Make a light blink at an interval in seconds.

light/blink <Light|Group> <interval> [--options]

You have access to several blinks which may be used instead of the value in seconds:

NameBlink Interval (s)Blink Length (%)Blink Offset (%)Example
off 000off-red off-green off-blue
slow 3300slow-red slow-green slow-blue
med1500med-red med-green med-blue
fast0.25500fast-red fast-green fast-blue

Options

OptionValuesUnitDescription
length0 - 1intSet the blink length of the light. Default is 0.5 (50%).
offset0 - 1intSet the blink offset of the light. Default is 0 (0%).

Example

Terminal
# using preset
light/blink SignalLight slow;

# using values and options
light/blink SignalLight 3 --length=0.3 --offset=0;

light/reset

Reset a light or group of lights to white and cease any blinking.

light/reset <Light|Group>

Local Storage

get

Get a value stored in LocalStorage.

get <key>

set

Set a value in LocalStorage.

set <key> <value>

Note

The set command provides no practical use to players at this time.

Rotors

Rotor Module

rotor/rotate

Rotate a rotor or group of rotors to a specific angle between -360 and 360 degrees.

rotor/rotate <Rotor|Group> <Angle> [--options]

Options

OptionValuesUnitDescription
speed-5.0 - 5.0RPMSet the speed of the rotor. Negative values will reverse the rotor. Default is 1 RPM.

rotor/lock

Lock a rotor or group of rotors.

rotor/lock <Rotor|Group>

Options

OptionValuesUnitDescription
stopfalse, trueboolSet the rotor's velocity to 0 when locking.

rotor/unlock

Unlock a rotor or group of rotors.

rotor/unlock <Rotor|Group>

rotor/reset

Reset a rotor or group of rotors to their original position (0 degrees).

rotor/reset <Rotor|Group>

rotor/speed

Set the speed of a rotor or group of rotors in RPM.

rotor/speed <Rotor|Group> <Speed> <Options>

Options

OptionValuesUnitDescription
addIndicates that the provided speed should be added to the current speed. Allows increment speed changes while in motion.
subIndicates that the provided speed should be subtracted from the current speed. Allows decremental speed changes while in motion.

Pistons

Piston Module

piston/distance

Extend or retract a piston to a specific distance.

piston/distance <Piston> <Distance> [--options]

Note

Small grid pistons have a maximum distance of 2 meters, while large grid pistons have a maximum distance of 10 meters.

piston/stop

Stop a piston while in motion. Note that pistons do not lock like a Rotor or Hinge.

piston/stop <Piston|Group>

piston/reset

Reset a piston to its original position (0 meters).

piston/reset <Piston>

piston/speed

Set the speed of a piston or group of pistons in m/s.

piston/speed <piston|Group> <Speed> <Options>

Options

OptionValuesUnitDescription
addIndicates that the provided speed should be added to the current speed. Allows increment speed changes while in motion.
subIndicates that the provided speed should be subtracted from the current speed. Allows decremental speed changes while in motion.

Programmable Block

Programmable Block Module

pb/run

Run a programmable block with an optional argument.

pb/run <ProgrammableBlock|Group> <argument> [--options]

Example

We have Whip's Subgrid Thruster Manager installed on another Programmable block named PB.ThrusterManager. It is particularly helpful when using thrusters on subgrids.

Terminal
pb/run "PB.ThrusterManager" dampeners_on;

Screens

Display Module

screen/print

Print a message to an LCD panel or group of panels.

screen/print <Screen|Group> <Message> <Options>

Info

At this time Mother cannot print text to cockpit screens.

Options

OptionValuesUnitDescription
colorRGBSet the color of the text.

You have access to the following colors which may be used in place of their RGB values:

NameRGBHexidecimal
red255,0,0FF0000
green0,255,000FF00
blue0,0,2550000FF
yellow255,255,0FFFF00
orange255,165,0FFA500
cyan0,255,25500FFFF
magenta255,0,255FF00FF
white255,255,255FFFFFF
black0,0,0000000

Sound Blocks

Sound Block Module

sound/play

Play the sound block with an optional sound.

# play the block
sound/play <SoundBlock|Group>

# play the block with a specific sound
sound/play <SoundBlock|Group> <sound>

See the set command for a list of available sounds.

sound/stop

Stop the sound block from playing.

sound/stop <SoundBlock|Group>

sound/set

Set the sound of the sound block.

sound/set <SoundBlock|Group> <sound>

You may use the sound as it appears in the sound block list or, for default sounds, using their ID below.

Default Sounds

ID
SoundBlockLightsOnSoundBlockLightsOffSoundBlockEnemyDetectedSoundBlockObjectiveComplete
SoundBlockAlert1SoundBlockAlert2SoundBlockAlert3DroneLoopSmall
DroneLoopMediumDroneLoopLargeDroneLoopHugeMusCalm_01
MusCalm_02MusCalm_03MusCalm_04MusCalm_05
MusCalm_06MusCalm_07MusCalm_08MusCalm_09
MusCalm_10MusCalm_11MusCalm_12MusCalm_13
MusMystery_01MusMystery_02MusMystery_03MusMystery_04
MusMystery_05MusMystery_06MusMystery_07MusMystery_08
MusBuild_01MusBuild_02MusBuild_03MusBuild_04
MusBuild_05MusBuild_06MusBuild_07MusSpace_01
MusSpace_02MusSpace_03MusSpace_04MusSpace_05
MusSpace_06MusSpace_07MusSpace_08MusSpace_09
MusSpace_10MusSpace_11MusSpace_12MusLightFight_01
MusLightFight_02MusLightFight_03MusLightFight_04MusLightFight_05
MusLightFight_06MusLightFight_07MusLightFight_08MusLightFight_09
MusLightFight_10MusLightFight_11MusLightFight_12MusLightFight_13
MusLightFight_14MusHeavyFight_01MusHeavyFight_02MusHeavyFight_03
MusHeavyFight_04MusHeavyFight_05MusHeavyFight_06MusHeavyFight_07
MusHeavyFight_08MusHeavyFight_09MusHeavyFight_10MusHeavyFight_11
MusHeavyFight_12MusHeavyFight_13MusHeavyFight_14MusDanger_01
MusDanger_02MusDanger_03MusDanger_04MusDanger_05
MusDanger_06MusEarthlike_01MusEarthlike_02MusEarthlike_03
MusEarthlike_04MusEarthlike_05MusEarthlike_06MusPlanet_01
MusPlanet_02MusPlanet_03MusPlanet_04MusPlanet_05
MusPlanet_06MusAlien_01MusAlien_02MusAlien_03
MusAlien_04MusAlien_05MusFunMusComp_01
MusComp_02MusComp_03MusComp_04MusComp_05
MusComp_06MusComp_07MusComp_08MusComp_09
MusComp_10MusComp_11MusComp_12MusComp_13
MusComp_14MusComp_15MusComp_16MusComp2_01
MusComp2_02MusComp2_03MusComp2_04MusComp2_05
MusComp2_06MusComp2_07MusComp2_08MusComp2_09
MusComp2_10MusComp2_11MusComp2_12MusComp2_13
MusComp2_14MusComp2_15MusComp2_16MusConcert_2
MusConcert_3MusConcert_4MusConcert_5MusConcert_6
MusConcert_7MusConcert_8MusConcert_9MusConcert_10

Example

Terminal
# default sound with sound id
sound/set MainSpeaker MusDanger_04;
# default sound with ingame name
sound/set MainSpeaker "Danger Music 04";

# other sound
sound/play MainSpeaker "Space Funk";

Timer Blocks

timer/start

Start execution for a timer block or group of timer blocks

timer/start <Block|Group> [--options]

timer/trigger

Trigger the immediate execution of a timer block or group of timer blocks.

timer/trigger <Block|Group> [--options]

timer/stop

Stop execution of a timer block or group of timer blocks.

timer/stop <TimerBlock|Group> [--options]
Last Updated:: 4/17/25, 11:39 PM
Contributors: Luke Morrison
Next
Compatibility