ElectricFence

A special version of the fence which damages upon contact as long as it is powered. Conducts electricity like a wire. It is a craftable and spawnable non-flammable solid.
It consumes 5 power per tick.
Here is a list of possible sizes that reach the maximum malleability (3000) that have integer components: 1x2x1500, 1x3x1000, 1x4x750, 1x5x600, 1x6x500, 1x8x375, 1x10x300, 1x12x250, 1x15x200, 1x20x150, 1x24x125, 1x25x120, 1x30x100, 1x40x75, 1x50x60, 2x2x750, 2x3x500, 2x4x375, 2x5x300, 2x6x250, 2x10x150, 2x12x125, 2x15x100, 2x20x75, 2x25x60, 2x30x50, 3x4x250, 3x5x200, 3x8x125, 3x10x100, 3x20x50, 3x25x40, 4x5x150, 4x6x125, 4x10x75, 4x15x50, 4x25x30, 5x5x120, 5x6x100, 5x8x75, 5x10x60, 5x12x50, 5x15x40, 5x20x30, 5x24x25, 6x10x50, 6x20x25, 8x15x25, 10x10x30, 10x12x25, 10x15x20
At its default size (5x5x1) it has a durability of 12, at its maximum size it has a durability of 60.
By default, its colour is #ffff00.
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
.