You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
blockninja124 edited this page Jul 28, 2026
·
1 revision
Altimeter peripheral
Peripheral type: cw_alt_meter
getHeight() ->number
Returns the current height the altimeter is at.
If the altimeter is on a ship, the height is automatically transformed from the shipyard into worldspace.
getOutput() ->number
Gets the current redstone signal strength the altimeter is outputting, in the range 0..15.
getTargetHeight() ->number
Returns the target height the altimeter is currently set to.
setTargetHeight(height: number)
Sets the target height of the altimeter. If height has decimals, they will be truncated.
getSensitivity() ->number
Returns the sensitivity the altimeter is currently set to.
setSensitivity(sensitivity: number)
Sets the sensitivity of the altimeter. If sensitivity has decimals, they will be truncated.
getDirection() ->string
Returns the current direction mode of the altimeter. Will be one of: UP, DOWN or BOTH.
setDirection(direction: string)
Sets the current direction mode of the altimeter. Not uppercase sensitive.
Throws if direction is not one of: UP, DOWN or BOTH.