-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
How do I build for a specific version of minecraft? #4574
Comments
(I tried unpacking the jar and editing neoforge.mods.toml, then rezipping it, but that didn't work) |
There is a (unmaintained and slightly outdated) 1.20.1 branch you can build from. If you need more recent changes on 1.21.1 you'll need to look into the changes made when updating from 1.21.1 to 1.21.3 and revert them (locally). |
Ok, yeah, there is actually a |
Make sure you are using java 17 |
Gooooooood call, I've been trying with various versions of java. Is there a preference between oracle / openjdk? |
Use adoptium, and get x64 jdk. If that doesn’t work I’ll send you a download link. |
Sigh, I wish I understood what I'm doing wrong.
that's very indicative of the problems I've been having. And I'm using the adoptium java 17:
(and this is a fresh ubuntu 22.04LTS vm I spun up just to compile this). |
I got it to compile using temurin jdk21 but it crashes minecraft. Here was my process:
That succeeds (fresh ubuntu 22.04) but the output jar doesn't work :(. |
Build also succeeds for me with the 1.21 branch + temurin jdk21, and editing the neoforge meta to support 1.21.1, but still crashes blockgame :/. Sigh, I feel so dumb. |
I’ll send the link when I’m home |
Thank you so much, man. I apologize for being helpless. I wish I knew more and didn't have to bug kind strangers. |
Oh you got it finished? |
no, sorry. I am able to get the gradle build to work and output jars, using various branches and various versions of java, but every one i've managed to build crashes minecraft. |
@PizzaGod873 If you do have a 1.21.1 jar that works, I'd really love a download link. Apologies for bugging you, but I have had no luck. |
You can also enable GitHub Actions on your repository and trigger the build workflow on the branch you want by pushing a dummy commit. |
What do you need help with?
Hey Leijurv.
Current version works with 1.21.3 - but if I want to build for 1.21.1, how can I do that? (or somehow modify the build to force it to ignore the version restrictions)?
Final checklist
The text was updated successfully, but these errors were encountered: