README

224 字
1 分钟
README

Use this service to connect your bot to an unsupported minecraft server versions.

Run:

Terminal window
docker-compose --profile viaproxy up

After first start it will create config file services/viaproxy/viaproxy.yml.

Edit this file, and change your desired target target-address,

then point your settings.js host and port to viaproxy endpoint:

"host": "host.docker.internal",
"port": 25568,

This easily works with “offline” servers.

Connecting to “online” servers via viaproxy involves more effort:
First start the ViaProxy container, then open another terminal in the mindcraft directory.
Run docker attach mindcraft-viaproxy-1 in the new terminal to attach to the container.
After attaching, you can use the account command to manage user accounts:

  • account list List all accounts in the list
  • account add microsoft Add a microsoft account (run the command and follow the instructions)
  • account select <id> Select the account to be used (run account list to see the ids)
  • account remove <id> Remove an account (run account list to see the ids)
  • account deselect Deselect the current account (go back to offline mode)

⚠️ warning

If you login with a microsoft account, the access token is stored in the saves.json file.
Never share this file with anyone! This would allow them to join servers in your name!

When you’re done setting up your account (don’t forget to select it), use CTRL-P then CTRL-Q to detach from the container.

If you want to persist these changes, you can configure them in the services/viaproxy/viaproxy.yml.

  1. Change auth-method to account
  2. Change minecraft-account-index to the id of your account

文章分享

如果这篇文章对你有帮助,欢迎分享给更多人!

评论区

Profile Image of the Author
Boyuan
石以砥焉,化钝为利。
欢迎来访
石以砥焉,化钝为利。这里是我的个人站点,主要记录学习笔记、项目实践和一些零散的想法。站内文章可用右上角搜索,也可以订阅 RSS。
分类
标签
最新动态
站点统计
文章
139
分类
17
标签
49
总字数
1,721,112
运行时长
0 天
最后活动
0 天前
站点信息
构建平台
Local
博客版本
v1.0.0
文章许可
CC BY-NC-SA 4.0

当前页面没有目录

文章目录

当前页面没有目录