Coupler
Will connect to nearby couplers with matching CouplerIDs when activated by Polysilicon. Deactivating via Polysilicon will detach two couplers. Repeatedly emits trigger signals when it is able to connect with another coupler of the same ID.
It is a craftable and spawnable non-flammable solid.
Here is a list of possible sizes that reach the maximum malleability (16) that have integer components: 1x16x1, 1x8x2, 1x4x4, 2x4x2, 4x2x2
At its default size (4x1x4) it has a durability of 1, at its maximum size it has a durability of 2.
By default, its colour is #a3a2a5.
It requires 10 Iron
, to be crafted.
Methods
GetAttachedCoupler() → otherCoupler
Returns a reference to the current connected coupler, will return nil
if no other coupler is connected.
The otherCoupler return is a Coupler
. It can also be nil
.
IsCoupled() → isCoupled
Returns whether or not the coupler is currently attached to another coupler.
The isCoupled return is a boolean
.
Configurables
AutoTrigger
Whether or not the coupler should emit trigger signals while in range of another valid coupler. It is a boolean
.
CouplerID
The ID of this coupler. It is a string
.