Craig Martin

(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.