c0de 0.3.0This page in English

Diese Seite ist noch nicht übersetzt. Sie wird auf Englisch angezeigt.

SET_LEVER ​

Switches a lever on or off.

A block that is not a lever raises INVALID_ARGUMENT. Levers on the sheets of the c0de dimension can't be changed (PERMISSION_DENIED).

Parameters and results

  • position STRUCT c0de/minecraft/POSITION: where the lever is
  • on BOOLEAN: true to switch it on, false to switch it off

Example

c0de
CALL c0de/minecraft/SET_LEVER
    PARAMETER position lever ;
    PARAMETER on TRUE ;