Merlin of Mines - Space Engineers

A set of useful scripts for aspiring Space Engineers!

View on GitHub

Ore Detector Block Handler

This block handler gives you some basic control over Ore Detectors, including setting their range, whether or not they are enabled, and whether or not they are broadcasting.

Default Primitive Properties:

Default Directional Properties

“Enabled” Property

Enables or Disables the given block

#Enable Block
enable "My Ore Detector"
set "My Ore Detector" to enabled
turn on "My Ore Detector"

#Disable Block
disable "My Ore Detector"
set "My Ore Detector" to disabled
turn off "My Ore Detector"

“Power” Property

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

#Turn on
turn on power to "My Ore Detector"
power on "My Ore Detector"

#Turn off
turn off "My Ore Detector"
power off "My Beacon"

“Radius” Property

Gets/Sets the radius, in meters, of the Ore Detector, meaning the radius in which it will detect nearby ores.

Print "Radius: " + "My Ore Detector" radius

set "My Ore Detector" radius to 200

“Range” Property

Same as Radius. Gets/Sets the range, in meters, of the Ore Detector, meaning the radius in which it will detect nearby ores.

Print "Range: " + "My Ore Detector" range

set "My Ore Detector" range to 200

“Broadcast” Property

Gets/Sets whether the Ore Detector is broadcasting, meaning that detected ores will be shared via any connected antenna.

if "My Ore Detector" is broadcasting
	Print "Sharing Ore Locations"

tell "My Ore Detector" to broadcast