c0de 0.3.0This page in English

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

SET_OPEN ​

Opens or closes a door, trapdoor or fence gate.

Any other block raises INVALID_ARGUMENT. Iron doors and iron trapdoors need the permission allowBlockChanges or an administrator as owner, otherwise PERMISSION_DENIED is raised.

Parameters and results

  • position STRUCT c0de/minecraft/POSITION: where the door is
  • open BOOLEAN: true to open, false to close

Example

c0de
CALL c0de/minecraft/SET_OPEN
    PARAMETER position door ;
    PARAMETER open TRUE ;