
Spotify-controls
Control your Spotify playback directly from Minecraft using simple commands!
🎵 Spotify Controls Mod for Minecraft 1.21+
Control your Spotify playback directly from Minecraft using simple commands!
✨ Features
-
🎵 Full Playback Control – Play, pause, skip, previous track
-
🔊 Volume Control – Set volume from 0–100%
-
🔁 Loop Modes – Track, context, or off
-
📢 Now Playing Toasts – Automatic notifications when songs change
-
📊 Music Progress Bar – XP bar syncs with the music progress (singleplayer only)
-
🔐 Secure Authentication – OAuth2 login flow
-
💾 Persistent Storage – Tokens saved locally
Note:-
You need to be registered at https://developer.spotify.com/dashboard Also,this mod requires Spotify Premium for playback controls because the Spotify Web API only allows controlling playback for Premium accounts. You can still use this mod without Premium to:
- View the currently playing track
- See the music progress bar in the XP bar (singleplayer only)
📦 Requirements
- Minecraft 1.21+
- Fabric Loader 0.16.5+
- Fabric API 0.100.8+
- Java 21+
- Spotify Premium account (required for playback control API)
⌨️ Commands
Click to expand
🔐 Authentication
- /spotify login - Opens browser for Spotify login
- /spotify logout - Logs out and clears tokens
- /spotify status - Check connection status
▶️ Playback Control
- /spotify resume - Resume playback
- /spotify pause - Pause playback
- /spotify skip - Skip to next track
- /spotify previous - Go to previous track
- /spotify current - Show currently playing track
- /spotify play
- Search and play a song
⚙️ Settings
- /spotify volume <0-100> - Set volume (e.g., /spotify volume 50)
- /spotify loop <track|context|off> - Set repeat mode
🔁 Loop modes:
- /spotify loop track – Repeat current track
- /spotify loop context – Repeat playlist / album
- /spotify loop off – No repeat
▶️ Usage Example
- First-time setup -> /spotify login
- Your browser will open (or a link will appear in chat), log in to Spotify
🛠️ Troubleshooting
Click to expand
- ❌ "Not logged in" error
Run /spotify login and complete authentication
- ❌ "Failed to play / pause"
Make sure Spotify is open on at least one device
Verify you have Spotify Premium
Run /spotify status to check connection
- 🔔 Toast notifications not appearing
Ensure Spotify is actively playing music
Confirm the mod is loaded (/spotify status)
- 🔄 Token expired
Tokens refresh automatically
If needed, run:
/spotify logout /spotify login
- 🌐 Browser doesn’t open
Manually open the URL shown in chat or logs
🔐 Privacy & Security
- Tokens are stored locally in your Minecraft config folder, no data is sent anywhere except Spotify’s official API.
- Tokens can be removed anytime using -> /spotify logout
