README.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ### mpd Mod for Minetest
  2. (c) 2017-2023 orwell96
  3. Adds an easy but powerful background music backend.
  4. NOTE: As of 2023-09, this mod comes without any music, since there have
  5. been reports of copyright violations. Please add your own music, as
  6. described below.
  7. ## Usage
  8. For all players:
  9. /mvolume <volume>
  10. Set your individual music volume or disable background music
  11. (/mvolume 0). Saved across server restarts.
  12. /mpd_list: list available music
  13. With mpd privilege:
  14. /mpd_play <id>: play a song
  15. /mpd_stop: stop the current song. Unless /mpd_play or /mpd_next are
  16. invoked, no more music is played
  17. /mpd_next [time]: Play the next song after [time] seconds,
  18. immediately if omitted.
  19. ## Votes
  20. This mod integrates with the [vote] mod by rubenwardy
  21. (https://github.com/minetest-mods/vote)
  22. /vote_mpd_next - vote to start next song
  23. /vote_mpd_play <id> - Vote to play certain sing
  24. ## Adding music
  25. To add your own music, you must provide the sound files.
  26. 1. Convert the sound files to OGG format (for example using Audacity)
  27. 2. Place the sound file in the sounds/ directory
  28. 3. Insert a new line into songs.txt
  29. Lines in songs.txt must contain the filename of the file in the sounds
  30. folder (without the .ogg extension), the length of the song, a gain
  31. value and a human-readable title, each separated by whitespace
  32. character. Using one "Tab" is recommended. See the example line.
  33. The gain is a value between 0.0 and 1.0, where 1.0 means full volume.
  34. It can be used to make all songs equally loud when they have different
  35. volumes.
  36. When recording videos e.g. for youtube, please make sure that you have
  37. permission to perform the song in the video and do not break any
  38. copyright law.
  39. ## License
  40. Copyright (C) 2017-2023 orwell96
  41. This program is free software: you can redistribute it and/or modify
  42. it under the terms of the GNU Affero General Public License as
  43. published by the Free Software Foundation, either version 3 of the
  44. License, or (at your option) any later version.
  45. This program is distributed in the hope that it will be useful,
  46. but WITHOUT ANY WARRANTY; without even the implied warranty of
  47. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  48. GNU Affero General Public License for more details.
  49. You should have received a copy of the GNU Affero General Public License
  50. along with this program. If not, see <http://www.gnu.org/licenses/>.