Jump to content

All versions of the game in one gradle project


Cornell

Recommended Posts

Hey.


I want to write a mod for all versions of the game. I am designing a modular system using gradle and would like to keep all versions of the game in one project at once. I noticed that many forge versions support different versions of Gradle Wrapper, and some versions depend on certain ones (example 1.7.10 depends on Gradle Wrapper versions earlier than 4.0). Can I implement what I have in mind or is it impossible in principle?

 

p.s. version support is required from 1.7.10 to current

 

p.p.s. I managed to fit two versions in one project: 1.7.10 and 1.12.2. I dare to assume that I can also place the versions between these in my project. But versions higher than 1.12.2 simply refuse to work on gradle4.0

Edited by Cornell
  • Like 1
Link to comment
Share on other sites

5 hours ago, diesieben07 said:

You would have to

  1. Design a common API for what your mods need to do. This code cannot depend on Minecraft at all. Most likely it will be a lot of interfaces.
  2. Implement the common API for every version you want to support, here you can use Minecraft and Forge.
  3. Implement your mod in terms of the API, again this cannot use any Minecraft classes.

All in all it is probably way too much work for it to be worth it.

Also note: Only 1.15.2 and 1.16.2 are currently supported on this forum.

 

Thanks for the answer. I have already done everything exactly like this. I only had a problem with ForgeGradle plugin version 1.2, which refused to work on gradle versions older than 4.0.

However, the issue has already been resolved by replacing ForgeGradle 1.2 with a fork by anatawa12. However, I had to install version 5.0 in the gradle wrapper, the fork does not work with the version below.

Edited by Cornell
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.