Page 1 of 1

[Mod] Jukebox [1.0] [jukebox]

PostPosted: Thu May 09, 2013 12:59
by BlockMen
Hi everyone,

this mod adds Jukeboxes to Minetest. Currently there is just one type of disc, but 6 songs that are played randomly. (no loop)

Screenshot:
Image

To use the jukebox, you have to craft one. You need 8 wood and 1 diamond to craft it following way:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
wood    wood    wood
wood   diamond  wood
wood    wood    wood



Furthermore you need Music Discs, that you can craft following way:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
  -    coal     -
coal   gold    coal
  -    coal     -


Just click with a music disc in your hand on the jukebox and it will play a random song. To stop the music rightclick the box again and it will drop the music disc.


Depends:
default

Download:
Version 1.0: Download

License:
WTFPL (code)
CC0 (songs)


Please give Feedback and ideas for improvement

PostPosted: Thu May 09, 2013 13:40
by Aqua
Cool! Will have a try tomorrow.

PostPosted: Thu May 09, 2013 15:02
by PilzAdam
Hybrid Dog wrote:
BlockMen wrote:License:
WTFPL (code)
CC0 (songs)
WTFPL and CC0 is the same, isn't it?

Well, they have different names ;-)

PostPosted: Fri May 10, 2013 11:59
by BlockMen
Hybrid Dog wrote:
BlockMen wrote:License:
WTFPL (code)
CC0 (songs)
WTFPL and CC0 is the same, isn't it?


It is not the same, but it has the same opportunites for you :P (in fact)

And why should i change the license of the songs?

PostPosted: Sat May 11, 2013 23:48
by Idanwin
Sweeet!

PostPosted: Tue Jul 16, 2013 21:02
by Jordach
Who knew this was such an awesome mod?

PostPosted: Tue Jul 16, 2013 21:45
by BrunoMine
very good. Any time I expected that.

PostPosted: Wed Jul 17, 2013 19:47
by AndrOn
Did you make the musics yourself? I really like those tiny cool mods

PostPosted: Thu Jul 18, 2013 05:51
by BlockMen
Jordach wrote:Who knew this was such an awesome mod?

Don't know? But it exists since 2 months :P

AndrOn wrote:Did you make the musics yourself? I really like those tiny cool mods


A look at the readme shows: no
License of music: CC0
---------------------
The authors are : (freesound.org)
-cheesepuff (song1)
-geerterig (song2)
-rap2h (song3)
-keffstay (song4)
-usedtobe (song5)
-zagi2 (song6)

PostPosted: Fri Aug 23, 2013 02:50
by Rehlgamer101
can you make it, to repeat the songs in the playlist, over and over until you eject the disc?

PostPosted: Fri Aug 23, 2013 09:22
by BlockMen
Rehlgamer101 wrote:can you make it, to repeat the songs in the playlist, over and over until you eject the disc?


Hmm...i cant promise, but i will see what i can do.

PostPosted: Sun Nov 17, 2013 23:16
by Johnyknowhow
intresting mod...

PostPosted: Mon Nov 18, 2013 00:45
by lightonflux
Is there any restriction of length?

Or can we suggest songs that are several minutes long (and CC0)?

Or do you want to keep it more $what_ever_that_sound_style_is_called, BlockMen?

PostPosted: Mon Nov 18, 2013 22:12
by BlockMen
lightonflux wrote:Is there any restriction of length?

Or can we suggest songs that are several minutes long (and CC0)?

Or do you want to keep it more $what_ever_that_sound_style_is_called, BlockMen?


More a restriction of filesize: ~1MB each song (max). And you can suggest any style but only instrumental, no vocals ;)

PostPosted: Sun Dec 01, 2013 03:07
by mathiaswolfgang
I love this mod. Very good job BlockMen (+1)

PostPosted: Wed Dec 04, 2013 02:56
by maier.nathan
Sweeet dude. Thanks for making my Minetest day.
Thanking you,
Nate

PostPosted: Sun Dec 15, 2013 01:28
by Xalaber
Beautiful music. This deserves an applause!
However,
Can you add custom songs to it? Like can we add .ogg files and have it play custom songs along with the music it already has? If not, there's an idea. May I suggest a disc for the regular music (already implemented) and a different colored disc (could be blue) for the custom songs? Also you could have a custom songs folder like so:

mods/jukebox/sounds/default/jukebox_song.1.ogg
then
mods/jukebox/sounds/custom/customsong01.ogg

OR if that doesnt work:

mods/jukebox/sounds/jukebox_song.1.ogg
mods/jukebox/sounds/customsong01.ogg
mods/jukebox/sounds/customsong02.ogg
mods/jukebox/sounds/customsong03.ogg
and so on...

Im not entirely good at writing lua, but I can read it. After looking at the init.lua file, I'm guessing
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.sound_play("jukebox_song",
this is where it plays the song file. So maybe you could probably make it IF there is any custom songs in a custom song folder, THEN it can play those on a seperate disc, ELSE it gives a message saying the disc is empty or blank. Of course it will need the custom disc to play custom music.

If we already can put music into it, then you could also give a quick tutorial, like a 3-4 step tutorial (if we need to set it up manually).

If not, and you decide to implement this into it, then we still might possibly need a quick tutorial.
Just a simple example,
1. Create a custom folder inside sounds folder
2. Put the .ogg files into the custom folder
3. Rename the file to Custom##.ogg starting with 01

But of course you will have to make it play in order and not random.

Finally my last idea for this idea is that you could have a simple gui (which might be laggy from what my research tells me) or a keybinding (1,2,3,4....) that only comes into play when you right click with jukebox. Of course there are pros and cons with both:
GUI: More than 10 songs, but laggy
Keybinding: less laggy, but only a max of 10 songs

I repeat, its merely an idea and its still your choice. If you do like my idea, I'm glad that I could be of some help.

Other than that, really love your mod.