throttle_lever

A 16-position physical lever. Its state is the analog redstone signal it emits (before any block-state inversion); writing it both updates the lever and plays the click sound.

getState()Get the current lever state.
setSignal(signal)Drive the lever to a new state.
getState()Source

Get the current lever state.

Returns

  1. number The lever state, 0..15.
setSignal(signal)Source

Drive the lever to a new state. A player can still change it afterwards — unlike analog_transmission there is no externally-controlled flag.

Parameters

  1. signal number The target state, clamped to 0..15.