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

Air Vent Module

The air vent module allows players to control air vents for uses like airlocks and oxygen capture.

  • Commands
    • pressurize
    • depressurize
  • Hooks

Commands

pressurize

Set the air vent to pressurize mode.

vent/pressurize <AirVent|Group>

Example

Terminal
vent/pressurize AirlockAirVent

depressurize

Set the air vent to pressurize mode.

vent/depressurize <AirVent|Group>

Example

Terminal
vent/depressurize "Atmosphere Intake Fan"

Hooks

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

KeyTrigger
onDepressurizedActivated when an air vent is in the Depressurized state.
onDepressurizingActivated when an air vent is in the Depressurized state.
onPressurizedActivated when an air vent is in the Pressurized state.
onPressurizingActivated when an air vent is in the Pressurized state.

Example

Imagine our air vent is part of our airlock:

Main Airlock Air Vent > Custom Data
[hooks]
onDepressurizing=light/color "MainAirlockLight" red;
onPressurized=door/open "MainAirlockInnerDoor";

Tips

You can use this to refer to the block itself when targeting it from within its own custom data.

or

Mother > Custom Data
[hooks]
"Main Airlock Air Vent".onDepressurizing=
| light/color "MainAirlockLight" red;

ExternalAirVent.onPressurized=
| screen/print "Atmosphere Screen" "IN ATMOSPHERE"
Last Updated: 4/29/25, 9:42 PM
Contributors: Luke Morrison
Next
Battery Module