Install: pastebin get manTdeiG music
Run: music
- Install the CC: Tweaked mod to your world/server.
- Craft an Advanced Computer and connect it to a speaker, or craft an Advanced Noisy Pocket Computer.
- Open the computer and then drag and drop the
music.luascript on top of the Minecraft window to transfer the file over. - Run the
musiccommand and enjoy your music!
The ComputerCraft program connects to a web server to download the music files. This server is hosted with Firebase Cloud Functions.
- Download this repository to your computer into a folder.
- Sign up for Firebase and make a new project at https://firebase.google.com/. A billing account is required even for the free plan. The limits of the free plan should be plenty for most people.
- Install Node.js version 20 from https://nodejs.org/en/download/.
- In your terminal, run
npm install -g firebase-toolsto install Firebase. - In your terminal, navigate inside the project folder. Run
firebase loginand follow the steps. - Run
firebase init functionsand follow the steps. Choose JavaScript. Don't choose to overwrite thefunctions/index.jsfile. Install the dependencies when prompted. - Run
cd functionsto go inside thefunctionsdirectory and then runnpm installto install more dependencies. - Run
cd ..to go back and then runfirebase deployto deploy your new Cloud Function. - After the deployment is complete it will give you the Function URL. Copy that URL into the first line of
music.lua.