Clone this wiki locally
With SmellyTunes, your players can use MIDI files just like any other music disc.
No caveats! As long as your music disc has the correct NBT data, it'll work like a charm.
Some options are provided to spice things up a little, such as volume-by-redstone-power.
I have a strong feeling this will be my most enjoyed plugin, and I certainly hope you do!
This is a scripted plugin and requires installation of Denizen and Citizens 2.
Make sure you have also installed the required Common Files.
You will also need to write a small amount of markup for each music disc, as shown below.
/smellytunes reload- re-read the config file and reload scripts.
/smellytunes update- check for updates
/smellytunes save- immediately save settings to disk
/smellytunes enable- globally enable plugin
/smellytunes disable- globally disable plugin
smellytunes.useallows use of custom discs in jukeboxes
smellytunes.bypassallows player to bypass server song limit
smellytunes.adminallows use of /smellytunes commands
Your music discs will need to be registered as Item Scripts in the following format:
any_unique_name: type: item debug: false display name: "<&a>Pokemon" material: i@music_disc_chirp[nbt=smellytunes/TVThemes/Pokemon.mid;flags=HIDE_POTION_EFFECTS] lore: - <&9>Television
You may place as many of these blocks in one file as you like.
Only the NBT Key will affect how your disc is treated. You could even give them recipes.
It is important to note that
smellytunes/ is the key, and
TVThemes/Pokemon.mid is its value.
Don't confuse the key and its value as one file path, they merely resemble one.
The filename is then added to the path specified as
dir in your
/plugins/Smellycraft/smellytunes.yml config file.