Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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.

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.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.