Jump to content

Mod supporting several versions from XXX to XXX


SprengMeister02

Recommended Posts

Hello everyone!

I am new to Forge, up to now, I used MCreator to write small mods for myself, but now, I wanted to try it with Forge.

So, I have downloaded Xray mod, and saw, that it supports several versions.

So, I wanted to know, how can I make a mod supporting several versions?

I read the tutorial for updating from 1.7.10 to 1.8 (currently on 1.8, but updating as soon as possible).

I thought that a mod can only support a single version? Because, after compiling, the mod gets compiled for version X.X.X, and can only support it.

 

Best regards,

SprengMeister02

In Minecraft, there are creepers ant TNT, but I

am definitely the most explosive thing.

Link to comment
Share on other sites

It's only possible to make a mod that supports several Minecraft versions at once if you don't interact with any part of the Minecraft/Forge code that's changed between versions. In practice, any mod that does something substantial is unlikely to work in multiple versions.

 

The only practical way to support multiple versions is to maintain a separate copy of the code for each one. Git branches are a good way to do this.

 

The exception to this rule is 1.10.2, which is 99% backwards compatible with 1.9.4. This means that most mods built for 1.9.4 will work in 1.10.2.

 

Forge no longer supports 1.7.10 at all (threads about it are locked) and I believe support for 1.8.9 is dwindling. I would recommend updating directly to 1.10.2, the only version that's currently receiving bug fixes and enhancements.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.