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: 1x1x64, 1x2x32, 1x4x16, 1x8x8, 2x2x16, 2x4x8, 4x4x4

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 #000000.

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 Range.

Events


Loop(tickInterval)

Fires when the object is updated by the game loop.

The tickInterval parameter is the inverse of the tick rate. For example, if the tick rate is 20, this will be 1 / 20 (or just 0.05). If the tick rate commands are accessible, running them will change this value. It is a number.