Table of Contents

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.