Jump to content

Recommended Posts

Posted

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

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

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.

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.