User Tools

Site Tools


wiki:computronics:lamp_block

Lamp Block

API

ComputerCraft/OpenComputers

Command Description Usage
getLampColour() Gets the lamp's RGB colour. Returns 0x000000-0xFFFFFF.
getLampType() Gets the lamp's type. Returns “Normal”, “Decorative” or “Indicator”.
isLampPowered() Checks if the lamp is being powered. Returns a boolean.
wiki/computronics/lamp_block.txt · Last modified: 2015/06/25 11:59 (external edit)