c0de 0.3.0Diese Seite auf Deutsch

SOUND ​

Plays a note at the trigger block like a note block.

note is 0 to 24, like the clicks on a note block. Instruments are note block instruments such as harp, bass, bell or flute. A wrong note or instrument raises INVALID_ARGUMENT.

Parameters and results

  • note INTEGER: the note, 0 to 24
  • instrument STRING: the instrument (optional, default "harp")

Example

c0de
CALL c0de/minecraft/SOUND
    PARAMETER note 12 ;
    PARAMETER instrument "bell" ;