(Official) LUA Scripting Documentation
Pages
Functions to manipulate power
set_power*
Set a block’s power state (on or off).
set_switch*
Set a switches on/off position.
toggle_switch*
Toggle a switch’s on/off position.
Set a block’s power state (on or off).
Set a switches on/off position.
Toggle a switch’s on/off position.