c0de 0.3.0This page in English

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

GET_PRESSURE_PLATE ​

Reads the signal strength of a pressure plate.

Pressure plates can only be read; entities press them. A block that is not a pressure plate raises INVALID_ARGUMENT.

Parameters and results

  • position STRUCT c0de/minecraft/POSITION: where the pressure plate is
  • result result INTEGER: the signal strength, 0 to 15

Example

c0de
CALL c0de/minecraft/GET_PRESSURE_PLATE
    PARAMETER position plate ;
    RESULT result strength