c0de 0.3.0Diese Seite auf Deutsch

GET_BUTTON ​

Checks if a button is pressed.

A block that is not a button raises INVALID_ARGUMENT.

Parameters and results

  • position STRUCT c0de/minecraft/POSITION: where the button is
  • result result BOOLEAN: true if the button is pressed

Example

c0de
CALL c0de/minecraft/GET_BUTTON
    PARAMETER position button ;
    RESULT result pressed