Denizen Script Commands


Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
Learn about how commands work in The Beginner's Guide.


Showing 1 out of 184 commands...
NameMidi
Syntaxmidi [cancel/<file> (tempo:<#.#>) (volume:<#.#>)] (<location>/<entity>|...)
Short DescriptionPlays a midi file at a given location or to a list of players using note block sounds.
Full DescriptionThis will fully load a midi song file stored in the '../plugins/Denizen/midi/' folder.
The file must be a valid midi file with the extension '.mid'.
It will continuously play the song as noteblock songs at the given location or group of players until the song ends.
If no location or entity is specified, by default this will play for the attached player.

Also, an example Midi song file has been included: "Denizen" by Black Coyote. He made it just for us!
Check out more of his amazing work at: http://www.youtube.com/user/BlaCoyProductions

The midi command is ~waitable. Refer to Language:~waitable.
Related TagsNone
Usage Example
# Use to play a midi song file on the current player.
- midi file:Denizen
Usage Example
# Use to play a midi song file at a given location.
- midi file:Denizen <player.location>
Usage Example
# Use to play a midi song file at a given location to the specified player(s), and wait for it to finish.
- ~midi file:Denizen <server.online_players>
Synonyms (Search Aid)music
Groupworld
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/world/MidiCommand.java#L30