Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.15.2] My mod is dependent on another mod of my own making. Should I...


Recommended Posts

...declare which versions of the dependent mod require which versions of the dependency and assume my users will download a compatible version of the dependency, or include the dependency with the correct version in my library? And if so, how?

 

Both mods do stuff on the client and server, so if including dependency libraries hides them from the client I may have to rely on my users being responsible.

Link to comment
Share on other sites

32 minutes ago, TheThorneCorporation said:

declare which versions of the dependent mod require which versions of the dependency and assume my users will download a compatible version of the dependency

Remember you can deprecate methods in the core to be removed later to allow backwards compatibility with older versions if the changes affect a wide range of mods you are creating. If you are including the libraries as a standard utility, you are most likely not going to reuse the code in other projects.

  • Like 1
Link to comment
Share on other sites

May I direct your attention to the mods.toml file.

https://mcforge.readthedocs.io/en/latest/gettingstarted/structuring/#the-modstoml-file

 

With it you can declare mods that yours depends on and specify a version (i.e. a minimum or strict version). Doing so will show the user an error message telling them about the missing mods.

 

On 5/19/2020 at 4:00 PM, TheThorneCorporation said:

Both mods do stuff on the client and server, so if including dependency libraries hides them from the client I may have to rely on my users being responsible.

If I understand your meaning, according to this page in the docs (https://mcforge.readthedocs.io/en/latest/concepts/sides/#writing-one-sided-mods) mods are expected to work regardless of what side they are on, and if they don't that is a problem the the mod author needs to address.

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
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.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.