Custom Minecraft launcher

回眸只為那壹抹淺笑 提交于 2020-01-15 03:54:12

问题


I want to create my own Minecraft launcher where when the player checks Force Update it downloads a modified minecraft.jar, an updated lwjgl (both not a big problem) and 2 extra folders in your .minecraft directory. I can do the first 2 by changing the MinecraftDownload directory to one on my own website and putting the modified files on my site, but i don't exactly know how to make it download and extract an archive into the .minecraft directory (i guess i will use lzma because the libs for that are already in there).

I am new to Java, but I did some very well vb.net programming so i know standard developing terms.


回答1:


0# This is not a real answer for the question. To Launch Minecraft 1.5.2(old):

java -Djava.library.path=bin/natives -cp bin/* net.minecraft.client.Minecraft YOURUSERNAMEHERE
pause

To Launch New Minecraft:

java -Xms2048M -Xmx2048M -Djava.library.path=versions/1.8/1.8-natives-xxxxxxxxxxxx -cp
libraries/ here the minecraft 1.8 libraries (optain from 1.8.json)
versions/1.8/1.8.jar
net.minecraft.client.main.Main
--username yourusername
--version 1.8
--assetsdir assest 
--assetindex 1.8
--accesstoken null
--userproperties {}

To understand this commands read this posts:

Launch minecraft 1.6.4 from command line with C#

Launch Minecraft from command line - usename and password as prefix

https://gaming.stackexchange.com/questions/156000/launching-minecraft-1-7-4-from-the-command-line




回答2:


Unpack bin/minecraft.jar and take a look inside

Happy hacking.



来源:https://stackoverflow.com/questions/11611839/custom-minecraft-launcher

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