Skip to main content

HeatCell

Legacy test item. Stores heat energy. Has a limit of 400 kJ.

It is a spawnable non-flammable solid.

Here is a list of possible sizes that reach the maximum malleability (8) that have integer components: 1x8x1, 1x4x2, 2x2x2

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

By default, its colour is #a34b4b.

It requires 1 HeatPipe, 1 Sulfur, and 1 Water to be crafted.

Methods


GetResource() → resource

Gets the name of the resource contained, will return the string "nil" if nothing is stored, rather than actually returning nil.

The resource return can be any of the following types:

  • string
  • "nil"

GetResourceAmount() → amount

Gives you the total amount of objects in the container.

The amount return is a number.


GetAmount() → amount

warning

This method is deprecated. Use :GetResourceAmount() instead.

Gives you the total amount of objects in the container.

The amount return is a number.

Events


ContainerChanged(resourceType, resourceAmount)

Fires when the amount of the resource in the container changes.

The parameters for ContainerChanged are as follows:

  • The resourceType parameter is a string that can be Power, Solid, or Fluid
  • The resourceAmount parameter is a number.