Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start a custom jar #212

Open
xandaaah opened this issue Apr 19, 2024 · 1 comment
Open

Start a custom jar #212

xandaaah opened this issue Apr 19, 2024 · 1 comment
Labels
question Further information is requested

Comments

@xandaaah
Copy link

I have a custom jar to launch, and the API docs have nothing on like specifying a path to the jar, or anything like that.

@mindstorm38
Copy link
Owner

Hi! To launch a custom JAR you have to conform to how .minecraft directories work (so-called "main dir"). In fact, you need to create a directory for your version under <main dir>/versions, and inside it, you also need to add a version metadata file <your version>.json, this metadata is really important as it tells the launcher how to build the command line to start your jar, which libraries to use, etc. You can check how mojang's versions are crafted and base your one on this.

Here is a sample directory structure, if your main dir is .minecraft and your custom version is named hello:

  • .minecraft
    • versions
      • hello
        • hello.json
        • hello.jar

@mindstorm38 mindstorm38 added the question Further information is requested label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants