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
- 🔐 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
📦 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 – Set volume (e.g., /spotify volume 50)
- /spotify loop
🔁 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
常见问题
Spotify-controls 支持哪些 Minecraft 版本?
Spotify-controls 支持 Minecraft Java 版 1.21–1.21.11,共 12 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Spotify-controls 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
评论
登录后评论和评分