Skip to main content

Reactor

Generates steam using water and heat from radiation. Up to 4 pieces of uranium can be inserted into the reactor as fuel. If the temperature is above 400, it will begin to turn water into steam (rate dependent on temperature). If the temperature exceeds 1200 F, a meltdown will occur. The Reactor fuel status can be acquired through the :GetFuel() method with a microcontroller. Polysilicon is used to control a reactor, and fuel must be ejected manually:

Activation lowers the control rods, decreasing reaction rate. Deactivation raises the control rods, allowing fuel to react. FlipFlop will eject fuel or waste from the fuel rod with the least fuel.

It is a craftable and spawnable non-flammable solid.

It cannot be resized.

At its default size (6x6x6) it has a durability of 15.

By default, its colour is #ffff00.

It requires 50 Iron, 25 Pipe, 10 Quartz, 30 Rubber, and 15 Wire to be crafted.

Methods


GetEfficiency() → efficiency

The efficiency return is a number.


GetFuel() → fuelState

Returns an array with four numeric values each representative of their fuel rod. The order is strict and goes from the first to the fourth fuel rod.

The fuelState return is a number.


GetTemp() → temperature

Returns a numeric value representing the current temperature of the reactor in degrees fahrenheit.

The temperature return is a number.

Configurables


Alarm

Determines whether the reactor alarm system is enabled for when the reactor is near meltdown temperature. It is a boolean.


TriggerWhenEmpty

Determines whether or not the reactor will emit a trigger signal when its fuel is empty. It is a boolean.

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.