Skip to main content

TemperatureSensor

When the surrounding temperature is within the defined range, it will emit a trigger signal every two seconds. When connected to a Reactor part, will use the Reactor's internal temperature.

The more advanced twin of this part, the TemperatureGate part may be more useful in many cases. It updates at a quicker rate and is more versatile, due to it controlling power flow.

It is a craftable and spawnable non-flammable solid.

Here is a list of possible sizes that reach the maximum malleability (64) that have integer components: 1x64x1, 1x32x2, 1x16x4, 1x8x8, 2x16x2, 2x8x4, 4x4x4, 8x4x2

At its default size (1x1x2) it has a durability of 1, at its maximum size it has a durability of 4.

By default, its colour is #635f62.

It requires 1 Iron, 2 Polysilicon, and 1 TriggerWire to be crafted.

Methods


GetTemp() → temperature

The temperature return is a number.

Configurables


TemperatureRange

The range of temperatures (°F) which this sensor will trigger at. It is a NumberRange.

Events


Loop(deltaTime)

Fires when the object is updated by the game loop.

The deltaTime parameter is the 'time' since the last tick, it does not represent the actual time since the last tick was occurred, rather just how often a game tick should be fired (it will always be precisely 1). It is a number.