Skip to main content

StorageSensor

When the number of contents within connected storage objects is within a defined range, it will send trigger signals similar to a button. This can be used to automate production of certain products when the stored quantity is low.

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.

Configurables


QuantityRange

The range of item quantities within which this sensor will trigger. 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.