[Mod] Jukebox [1.0] [jukebox]

User avatar
BlockMen
Developer
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
Location: Germany
GitHub: BlockMen

[Mod] Jukebox [1.0] [jukebox]

by BlockMen » Thu May 09, 2013 12:59

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:

Code: Select all
wood    wood    wood
wood   diamond  wood
wood    wood    wood



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

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
 

User avatar
Aqua
Member
 
Posts: 641
Joined: Wed Aug 22, 2012 09:11
Location: Sydney~Singapore

by Aqua » Thu May 09, 2013 13:40

Cool! Will have a try tomorrow.
Hi there ^.~
 

User avatar
PilzAdam
Developer
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Thu May 09, 2013 15:02

Hybrid Dog wrote:
BlockMen wrote:License:
WTFPL (code)
CC0 (songs)
WTFPL and CC0 is the same, isn't it?

Well, they have different names ;-)
 

User avatar
BlockMen
Developer
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
Location: Germany
GitHub: BlockMen

by BlockMen » Fri May 10, 2013 11:59

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?
 

Idanwin
Member
 
Posts: 22
Joined: Tue Apr 23, 2013 14:41

by Idanwin » Sat May 11, 2013 23:48

Sweeet!
This is a signature virus. Add me to your signature so that I can multiply.
 

User avatar
Jordach
Member
 
Posts: 4439
Joined: Mon Oct 03, 2011 17:58
Location: Blender Scene
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Tue Jul 16, 2013 21:02

Who knew this was such an awesome mod?
 

User avatar
BrunoMine
Member
 
Posts: 962
Joined: Thu Apr 25, 2013 17:29
Location: SP-Brasil
GitHub: BrunoMine

by BrunoMine » Tue Jul 16, 2013 21:45

very good. Any time I expected that.
My small square universe under construction ... Minemacro
Comunidade Minetest Brasil
www.minetestbrasil.com
 

User avatar
AndrOn
Member
 
Posts: 38
Joined: Fri May 31, 2013 22:32
Location: Orléans, France

by AndrOn » Wed Jul 17, 2013 19:47

Did you make the musics yourself? I really like those tiny cool mods
sorry for bad english
 

User avatar
BlockMen
Developer
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
Location: Germany
GitHub: BlockMen

by BlockMen » Thu Jul 18, 2013 05:51

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)
 

User avatar
Rehlgamer101
Member
 
Posts: 19
Joined: Thu Aug 22, 2013 22:01
Location: I'm there when you blink!

by Rehlgamer101 » Fri Aug 23, 2013 02:50

can you make it, to repeat the songs in the playlist, over and over until you eject the disc?
Super Mario!!! Need I say more? I think not!!
 

User avatar
BlockMen
Developer
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
Location: Germany
GitHub: BlockMen

by BlockMen » Fri Aug 23, 2013 09:22

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.
 

User avatar
Johnyknowhow
Member
 
Posts: 358
Joined: Fri Sep 21, 2012 15:17
Location: Washington, USA
In-game: Minetestian

by Johnyknowhow » Sun Nov 17, 2013 23:16

intresting mod...
I lost interest in Minetest for a couple of years and... I am still not really paying much attention. I rarely browse these forums anymore but it's nice to see old faces.

obligatory fancy signature goes here
 

User avatar
lightonflux
Member
 
Posts: 384
Joined: Mon Nov 11, 2013 07:22
Location: Germany
In-game: lof

by lightonflux » Mon Nov 18, 2013 00:45

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?
 

User avatar
BlockMen
Developer
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
Location: Germany
GitHub: BlockMen

by BlockMen » Mon Nov 18, 2013 22:12

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 ;)
 

User avatar
mathiaswolfgang
Member
 
Posts: 33
Joined: Thu Oct 10, 2013 12:29

by mathiaswolfgang » Sun Dec 01, 2013 03:07

I love this mod. Very good job BlockMen (+1)
 

User avatar
maier.nathan
Member
 
Posts: 40
Joined: Wed Dec 04, 2013 02:07
Location: Myrtle Beach, South Carolina
GitHub: npmaier
In-game: Bikemare EdgarLinton

by maier.nathan » Wed Dec 04, 2013 02:56

Sweeet dude. Thanks for making my Minetest day.
Thanking you,
Nate
 

Xalaber
New member
 
Posts: 1
Joined: Sat Dec 14, 2013 18:19

by Xalaber » Sun Dec 15, 2013 01:28

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
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.
 


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 3 guests