Skip to main content

Electromagnet

A powerful magnet. It is a craftable and spawnable non-flammable solid.

It consumes 14 power per tick.

Here is a list of possible sizes that reach the maximum malleability (25) that have integer components: 1x1x25, 1x5x5

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

By default, its colour is #edeaea.

It requires 20 Copper, 10 Iron, and 100 Wire to be crafted.

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.