MP3 Player and Speakers
Play your own MP3 files in the world through the Audio Mixer, in 3D, on 999 channels, synced for everyone on the server.
Simply Cozy can play your own MP3 files inside Minecraft. Not note blocks, not resource pack discs, actual MP3s you drop in a folder. They get sent to everyone on the server and play out of speaker blocks in the world.
The three blocks
| Block | What it does | Hearing range |
|---|---|---|
| Audio Mixer | The controller. You browse your MP3s here and start them on a channel. | — |
| Speaker | Plays whatever’s on its channel. | 50 blocks |
| Mini Speaker | Same thing, smaller, shorter range. | 25 blocks |
Every one of them has a channel from 1 to 999. A mixer plays to every speaker in the world on the same channel, no matter how far apart they are. You just only hear the ones you’re in range of.
Proper 3D sound
Since 1.9.45 every speaker is its own sound in the world, so it actually sounds like it’s coming from that speaker. Walk around it and it moves in your headphones, walk away and it gets quieter. Put two speakers on opposite sides of a room and you get something like stereo.
A couple of side effects of that:
- Tracks get mixed down to mono, since Minecraft can only place mono sounds in 3D. Stereo files still work fine, they just lose the left/right split.
- It goes through Minecraft’s normal sound engine now, so mods like Sound Physics Remastered can add echo and muffling to it.
- At most six speakers play at once for you (the closest ones), so there’s always room left for music discs and background music.
Getting your music in
The music lives in a folder inside your world save. The first time a world or server starts, Simply Cozy makes it for you:
<world folder>/simplycozydata/simplycozymp3/
Drop your .mp3 files in there. Subfolders work too, you can browse into them from the mixer. If
that folder doesn’t exist, it falls back to simplycozydata/simplycozymp3/ next to the server jar
or game folder.
You don’t need to send the files to anyone. On a server, the file gets sent to each player
automatically the first time it plays, and saved in their own game folder under
simplycozydata/simplycozymp3/.
Using the Audio Mixer
Right-click a mixer to open it. It’s basically a file browser:
- The list shows the folders and
.mp3files in the current folder, A to Z. Click a folder to go into it, click a file to start playing it on the mixer’s channel. - The number box at the top is the channel. Type a number from 1 to 999 and hit the enter button on the right. If you change the channel while something’s playing, the song moves to the new channel instead of stopping.
- The volume slider on the right side goes from 0% (silent) up to 150% (boosted). 100% is normal. It changes the volume of the whole channel for everyone, live, even mid-song.
- The back button goes up a folder, or closes the screen if you’re already at the top.
- The stop button stops that channel for everyone.
Setting a speaker’s channel works the same way with a smaller screen: right-click it, type a number, press enter.
How playback actually works
Worth knowing, because it explains most of the weird stuff:
- You click a file in the mixer. The server saves the filename and a start time on the mixer, then tells everyone that channel N is now playing that file from that moment.
- At the same time, the server reads the file and sends it to every player in 128 KB chunks. Each player puts the chunks back together and saves the file.
- Each player works out which speakers they’re in range of and plays the song from wherever it should be by now, based on that start time. So if you walk up halfway through, you hear it from halfway, not from the start.
- The decoding happens in the background and gets streamed into the game, with a little buffer first. That buffer is why there’s a short pause between clicking a song and hearing it.
What that means in practice:
- Speakers loop. When a song ends it starts again until someone stops the channel.
- Walking out of range stops the sound, and walking back in picks it up at the right spot, because it works out where the song should be from the shared start time every time.
- If you don’t have the file yet, your game tries again every 3 seconds until it arrives.
- Breaking a mixer stops its channel for everyone straight away. Breaking a speaker stops that speaker too.
- It’s all per world, so speakers and mixers in a different dimension are ignored.
Commands
All of these need gamemaster permission (what used to be op level 2), since they affect everyone.
| Command | What it does |
|---|---|
/simplycozy media mp3 "<filename>" | Sends that file to everyone and plays it right away. Not positional, it just plays in everyone’s ears, no speaker needed. You can leave off the .mp3. |
/simplycozy media folder "<foldername>" | Plays a folder from files players already have. Heads up: right now it only plays the first .mp3 in the folder, not the whole thing as a playlist. |
/simplycozy media mute | Mutes speakers just for you. It’s saved in your config so it stays muted after a restart. |
/simplycozy media unmute | Undoes that. |
/simplycozy media stop | Clears every mixer in the world and stops everything for everyone. |
/simplycozy media loop <true|false> | It’s there, but it doesn’t do anything yet. Speakers always loop. |
Muting works mid-song too, and anything that starts while you’re muted stays quiet.
Safety stuff
Since MP3s get sent over the network, both sides check what they’re getting:
- The server won’t hand out any file that’s outside the
simplycozymp3folder, so nobody can ask it for random files on your PC. - Your game does the same check before saving anything, and ignores broken chunk numbers, so a
dodgy server can’t write files outside your
simplycozymp3folder either. Transfers are capped at 200,000 chunks.
What about video?
There’s a simplycozydata/simplycozymp4/ folder next to the MP3 one, and a Monitor block
with its own screen. Neither plays video yet. Right now the monitor lights up while someone has it
open and shows a static “City” picture. The folder is just there for later.