wheel_mount
One wheel of a vehicle. On top of the kinetic SCADA surface, exposes
independent script overrides for steering and braking (each replacing
the corresponding redstone read), plus suspension and tire reads.
To drive a 4-wheeled vehicle from one computer: assemble all four
mounts as separate peripherals (e.g. via peripheral.find or
named modems) and call setSteering / setBrake on
each with the same input. Drive force itself comes from the Create
kinetic network feeding the axles — pair with speed_controller.
| setSteering(value) | Install a steering override. |
|---|---|
| clearSteering() | Release the steering override; the wheel resumes reading side redstone. |
| getSteering() | |
| getSteeringAngle() | |
| isSteeringOverridden() | |
| setBrake(value) | Install a brake override. |
| clearBrake() | Release the brake override; the wheel resumes reading top-redstone. |
| getBrake() | |
| isBrakeOverridden() | |
| hasTire() | |
| getTireRadius() | |
| getExtension() | |
| getAngularVelocity() | |
| getTouchingFriction() | |
| isLiftedUp() | |
| getSelfId() | Get this block's id. |
| getSourceId() | Get the id of the block immediately driving this one, or nil if this block has no source. |
| getSubnetworkAnchorId() | Get the id of this block's speed-zone anchor — the gearshift / clutch / speed controller / generator that defines the start of this speed zone. |
| getNetworkId() | Get the id of this block's kinetic network. |
| getKind() | Get this block's role on the kinetic graph: one of "generator", "split_shaft", "consumer", or "passthrough". |
| getSpeed() | Get the local rotational speed at this block. |
| hasSource() | Check whether this block is connected to a kinetic source. |
| isOverstressed() | Check whether the block's network is overstressed. |
| getStressImpact() | Get the stress impact of this block on its network — how much stress it draws while running. |
| getStressContribution() | Get this block's contribution to its network's stress capacity. |
- setSteering(value)Source
Install a steering override. Replaces the side-redstone read so the wheel turns by
value × 30°regardless of redstone. CallingsetSteeringon every wheel of a vehicle with the same value gives parallel steering. For real Ackermann geometry the caller computes per-wheel angles and writes them individually.Parameters
- value
numberSteering input in [-1, 1]. Out-of-range values are clamped.
- value
- clearSteering()Source
Release the steering override; the wheel resumes reading side redstone.
- getSteering()Source
Returns
numberThe currently-applied steering input in [-1, 1]. When override is active, this is the script value; otherwise it is the live redstone differential normalized to the same range.
- getSteeringAngle()Source
Returns
numberCurrent steering angle in degrees, computed from the active signal. Maxes at ±30° (the wheel's hard-clamped range).
- isSteeringOverridden()Source
Returns
booleanTrue when the steering input is currently script-driven.
- setBrake(value)Source
Install a brake override. Replaces the top-of-block redstone read on both server-side physics and the client-side visual.
Parameters
- value
numberBrake strength in [0, 1]. Out-of-range values are clamped.
- value
- clearBrake()Source
Release the brake override; the wheel resumes reading top-redstone.
- getBrake()Source
Returns
numberThe currently-applied brake strength in [0, 1].
- isBrakeOverridden()Source
Returns
booleanTrue when the brake input is currently script-driven.
- hasTire()Source
Returns
booleanTrue when a tire item is installed in the mount.
- getTireRadius()Source
Returns
numberThe radius of the installed tire, in blocks;0when no tire is installed.
- getExtension()Source
Returns
numberLive suspension extension distance. Larger values mean the wheel hangs lower below its mount; small (and clamped to0.5when no tire is loaded) means compressed against the chassis.
- getAngularVelocity()Source
Returns
numberWheel's angular velocity in radians per tick.
- getTouchingFriction()Source
Returns
numberFriction coefficient of the block currently under the wheel.1.0when airborne or on a "normal" block; lower on ice and similar low-friction surfaces.
- isLiftedUp()Source
Returns
booleanTrue when the wheel is detached from terrain (suspension travel exceeded). A lifted wheel has no traction.
- getSelfId()Source
Get this block's id. Other peripherals'
getSourceIdorgetSubnetworkAnchorIdreturn this same id when they refer to this block.Returns
stringThe block's id.
- getSourceId()Source
Get the id of the block immediately driving this one, or nil if this block has no source.
Returns
stringThe parent's id, or nil.
- getSubnetworkAnchorId()Source
Get the id of this block's speed-zone anchor — the gearshift / clutch / speed controller / generator that defines the start of this speed zone. Two blocks share an anchor iff they're in the same speed zone. A generator or split-shaft returns its own
getSelfId.Returns
stringThe anchor block's id, or nil.
- getNetworkId()Source
Get the id of this block's kinetic network. Same value for every block on the same network regardless of how many speed zones lie between them. Nil if this block isn't on a network.
Returns
stringThe network id, or nil.
- getKind()Source
Get this block's role on the kinetic graph: one of
"generator","split_shaft","consumer", or"passthrough".Returns
stringThe role string.
- getSpeed()Source
Get the local rotational speed at this block. Signed; same value across a speed zone, changes across a split-shaft.
Returns
numberThe local speed.
- hasSource()Source
Check whether this block is connected to a kinetic source.
Returns
booleanTrue if a source is connected.
- isOverstressed()Source
Check whether the block's network is overstressed.
Returns
booleanTrue if overstressed.
- getStressImpact()Source
Get the stress impact of this block on its network — how much stress it draws while running. Speed-dependent; zero for sources and pure conduit blocks. Matches the "Stress Impact" value shown by goggles.
Returns
numberThe stress impact.
- getStressContribution()Source
Get this block's contribution to its network's stress capacity. Non-zero for sources only. Parallel to
getStressImpact(per-block draw) and distinct fromCreate_Stressometer#getStressCapacity, which reports the network total.Returns
numberThe per-block stress contribution.