Note Block¶
A Note Block is a musical block that emits sounds when punched or powered with redstone.
Peripheral Name | Interfaces with | Has events | Introduced in |
---|---|---|---|
noteBlock | Note Block | No | 0.7.4r |
Functions¶
playNote¶
playNote() -> void
getNote¶
getNote() -> number
changeNoteBy¶
changeNoteBy(note: number) -> number
note
. note
must be a number from 0 to 24.Returns the
note
if successful or -1 if not successful.
changeNote¶
changeNote() -> number
Returns the new note if successful or -1 if not successful.
Changelog/Trivia¶
0.7.4r
Added the Note Block integration
0.6b
Added integration for Minecraft