Posted August 24, 20205 yr 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 August 24, 20205 yr by Cornell
August 24, 20205 yr Author 5 hours ago, diesieben07 said: You would have to 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. Implement the common API for every version you want to support, here you can use Minecraft and Forge. 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 August 24, 20205 yr by Cornell
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.