Merlin of Mines - Space Engineers

A set of useful scripts for aspiring Space Engineers!

View on GitHub

Merge Block Handler

This Block handler will let you connect and disconnect Merge Blocks.

There are no Block Type Group Keywords for merge blocks, but you can use “blocks” to indicate a group:

#Group called "My Merge Blocks"
turn on "My Merge Blocks"

Default Primitive Properties:

“Enabled” Property

Enables or Disables the given block

#Enable Block
enable "My Merge Block"
set "My Merge Block" to enabled
turn on "My Merge Block"

#Disable Block
disable "My Merge Block"
set "My Merge Block" to disabled
turn off "My Merge Block"

“Power” Property

Turns on or off power to the block. Effectively the same as the Enabled property.

#Turn on
turn on power to "My Merge Block"
power on "My Merge Block"

#Turn off
turn off "My Merge Block"
power off "My Merge Block"

“Locked” Property

Returns whether the merge block is currently connected to another merge block. This property is read-only. When set, this property enables or disables the merge block (the only way to connect/disconnect).

if "My Merge Block" is locked
  Print "Merge block is locked"

#Enables the merge block
lock "My Merge Block"

#Disables the merge block
unlock "My Merge Block"

“Connected” Property

Same as Locked. Returns whether the merge block is currently connected to another merge block. This property is read-only. When set, this property enables or disables the merge block (the only way to connect/disconnect).

if "My Merge Block" is connected
  Print "Merge block is connected"

#Enables the merge block
connect "My Merge Block"

#Disables the merge block
disconnect "My Merge Block"