MeseCraft f05536c26f move music_modpack to mobs_disabled until we can work out how to have music with mobile devices. | vor 1 Jahr | |
---|---|---|
.. | ||
music_api | vor 1 Jahr | |
music_default | vor 1 Jahr | |
music_dfcaverns | vor 1 Jahr | |
music_nether | vor 1 Jahr | |
README.md | vor 1 Jahr | |
description.txt | vor 1 Jahr | |
modpack.txt | vor 1 Jahr |
Music modpack with API for easy in-game music playback and custom track registration.
By default, settings menu is only available with /musicsettings
command. If you have sfinv_buttons installed, music menu is available in inventory->more->music settings
Call music.register_track() with following definition:
music.register_track({
name = "my_track",
length = 200,
gain = 1,
day = true,
night = true,
ymin = 0,
ymax = 31000,
})
Available settings that you can put in your minetest.conf directly, or access them via "Settings->All Settings->Mods->music_modpack" menu.
music_time_interval = integer, Interval between attempts to play music, default is 60
music_cleanup_interval = integer, interval between attempts to clean up player state, default is 5
music_global_gain = float, global music volume, default is 0.3
music_add_random_delay = boolean, if to add a random delay to interval between attempts, default is true
music_maximum_random_delay = - integer, maximum random delay in seconds, default is 30
music_display_playback_messages = boolean, display messages when music starts for a certain player, default is true
Music packs also provide settingtypes with corresponding height limits.
Default pack features 11 tracks from composer Kevin McLeod. Tracks are split into day tracks and night tracks. If music_dfcaverns is not enabled, night tracks also play underground (up to -31000).
Music_dfcaverns is an additional pack of music for underground layers from dfcaverns, featuring 13 tracks from composer Kevin McLeod. Tracks split into three categories, each for one cavern layer from dfcaverns, and their heights are set accordingly. Dfcaverns modpack is not required, however, and it is recommended to enable this pack even without dfcaverns, unless client connection speed is an issue.
Code is licensed under GPLv3.
All music used in this mod was produced by Kevin McLeod and released under CC BY 4.0. link to the license.
Original music can be found here.