Launch Minecraft from the command line Python/C++

a 夏天 提交于 2019-12-02 02:20:19

I'm running on linux, but this also should work for you:

java -cp ".minecraft/bin/*" -Djava.library.path=".minecraft/bin/natives/" net.minecraft.client.Minecraft "username" "login id"

You don't need to input your username/login id, but if you don't, you can't get in any servers.

You can get your login id here: https://login.minecraft.net?user=<username>&password=<password>&version=13

More info about the authentication scheme here

UPDATE:
The new launcher for minecraft 1.6 changed a lot.
For the launch command you should look in .minecraft/versions/<version>/<version>.json The authentication also changed. It now uses POST parameters and returns JSON. More about it here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!