music7box
-
Posts
5 -
Joined
-
Last visited
Posts posted by music7box
-
-
I need to launch the game without showing main menu for simplicity.
Now I know how to connect to a (remote) server and join its running world directly (without showing main menu) by passing --server and --port command args to launch the game. It works pretty well.
But I have no idea on how to create a single player world or reenter the single player world created before directly without main menu.
I really need this functionality. Please help me. Many thanks in advance.
Here are the information I've collected.optionparser.accepts("server").withRequiredArg();
optionparser.accepts("port").withRequiredArg().ofType(Integer.class).defaultsTo(Integer.valueOf(25565), new Integer[0]);
optionparser.accepts("gameDir").withRequiredArg().ofType(File.class).defaultsTo(new File("."), new File[0]);
optionparser.accepts("assetsDir").withRequiredArg().ofType(File.class);
optionparser.accepts("resourcePackDir").withRequiredArg().ofType(File.class);
optionparser.accepts("proxyHost").withRequiredArg();
optionparser.accepts("proxyPort").withRequiredArg().defaultsTo("8080", new String[0]).ofType(Integer.class);
optionparser.accepts("proxyUser").withRequiredArg();
optionparser.accepts("proxyPass").withRequiredArg();
optionparser.accepts("username").withRequiredArg().defaultsTo("Player" + Minecraft.getSystemTime() % 1000L, new String[0]
optionparser.accepts("uuid").withRequiredArg();
optionparser.accepts("accessToken").withRequiredArg().required();
optionparser.accepts("version").withRequiredArg().required();
optionparser.accepts("width").withRequiredArg().ofType(Integer.class).defaultsTo(Integer.valueOf(854), new Integer[0]);
optionparser.accepts("height").withRequiredArg().ofType(Integer.class).defaultsTo(Integer.valueOf(480), new Integer[0]);
optionparser.accepts("userProperties").withRequiredArg().required();
optionparser.accepts("assetIndex").withRequiredArg();
optionparser.accepts("userType").withRequiredArg().defaultsTo("legacy", new String[0]);
Above are Minecraft Launch Parameters Arguments I copied from forge source code.
So basically we have these parameters to pass when launching the game:
server
port
gameDir
assetsDir
resourcePackDir
proxyHost
proxyPort
proxyUser
proxyPass
username
uuid
accessToken
version
width
height
userProperties
assetIndex
userType
-
I need to launch the game without showing main menu for simplicity.
Now I know how to connect to a (remote) server and join its running world directly (without showing main menu) by passing --server and --port command args to launch the game. It works pretty well.
But I have no idea on how to create a single player world or reenter the single player world created before directly.
I really need this functionality. Please help me. Many thanks in advance.
-
Thanks for reply.
I intended to support mods so I guess forge is needed.
As for versions, I plan to support from 1.6 up to 1.10. I thought lower version could be easier.
-
I want to make my own custom launcher for minecraft, where player selects single player mode or multiplayer mode inside launcher instead of game main menu. When player launches minecraft, it goes directly into game world without showing the main menu.
I am new to minecraft development, but I have experience with java programming. I don't know where to begin with. Is there a tutorial about buiding custom launcher? If I want to launch minecraft with parameters like server and port, how could I launch it, which jar file to launch?
Many thanks in advance.
How to launch a single player game through command line?
in General Discussion
Posted
Is there any guidance for making a mod like you said?
I only got some books and online tutorials talking about manipulating recipes, blocks and armor.