[Mod] Jukebox [1.0] [jukebox]

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

[Mod] Jukebox [1.0] [jukebox]

by BlockMen » Post

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
Contact:

by Aqua » Post

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

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

by PilzAdam » Post

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
GitHub: BlockMen
Location: Germany

by BlockMen » Post

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?

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

by Idanwin » Post

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

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

by Jordach » Post

Who knew this was such an awesome mod?
viewtopic.php?f=10&t=19056 Solar Plains Dev Server

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

by BrunoMine » Post

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: 47
Joined: Fri May 31, 2013 22:32
Location: Orléans, France

by AndrOn » Post

Did you make the musics yourself? I really like those tiny cool mods
k8NzxjXgxpd3KOKx8pz2z12pStfpe5tR

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

by BlockMen » Post

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!
Contact:

by Rehlgamer101 » Post

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
GitHub: BlockMen
Location: Germany

by BlockMen » Post

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
In-game: Minetestian
Location: Washington, USA

by Johnyknowhow » Post

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
In-game: lof
Location: Germany

by lightonflux » Post

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
GitHub: BlockMen
Location: Germany

by BlockMen » Post

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 » Post

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

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

by maier.nathan » Post

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

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

by Xalaber » Post

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.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests