registerNoteBlockPlay

open fun registerNoteBlockPlay(method: Any): EventTrigger

Registers a new trigger that runs before a noteblock is played.

Passes through four arguments:

  • The note block play event's Vector3f position

  • The note block play event's note's name

  • The note block play event's octave

  • The note block play event, which can be cancelled

Available modifications:

Return

The trigger for additional modification

Parameters

method

The method to call when the event is fired

Sources

Link copied to clipboard