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

このページには目次がありません

目次

このページには目次がありません