Skip to content

Drill Module

Extracts minerals through self.drill. The basic drill handles hardness 1 at 1.0× speed using 10 W; Industrial handles hardness 3 at 0.75× using 20 W; Heavy handles hardness 4 at 0.6× using 30 W. Without a mounted Drill Module, the vehicle cannot mine.

Access: self.drill (on a vehicle with the module mounted) · This page also covers the DrillModule API type.

VariantHardness capSpeed multiplierPower draw
Basic11.0×10 W
Industrial30.75×20 W
Heavy40.6×30 W

Extract 1 unit of the current site’s mineral into vehicle cargo. Mining takes mineral_base_minutes × drill.speed_multiplier() / site_purity game-time, and the script pauses until it finishes.

Returns: ActionResult · Outcomes: "ok" / "not_mounted" / "not_at_site" / "not_surveyed" / "too_hard" / "no_cargo_space" / "no_power" (transient) / "not_enough_power" / "busy" (transient)

Maximum mineral hardness this drill can extract.

Returns: Number: 1 basic, 3 Industrial, 4 Heavy. Raises: ReferenceError on a stale captured module reference (module no longer mounted); read self.drill again after mounting a drill.

Per-unit time multiplier (lower = faster).

Returns: Number: 1.0 basic, 0.75 Industrial, 0.6 Heavy. Raises: ReferenceError on a stale reference.