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.14.4] Are shaded mods loaded? (Or: Conditional mod loading?)

Featured Replies

Posted

I want to create a mod library that can either be shaded into another mod's jar, or loaded as a normal dependency library. I'd prefer to avoid forcing mod creators to add my library to their list of required dependencies, while still giving them access to most of my library's features. For this to work, I'd need to rely on Forge not loading my library mod if it's shaded into another mod's jar.

There's a handful of workarounds for this, such as forcing mod creators to chose one of the two options, but I'd love it if this idea is possible.

 

Another way of visualizing my issue is to imagine a library that contains a main() method that allows it to do special things when run separately from the dependent's program (e.g. the H2 database engine, which can run a dedicated database on its own or simply provide a driver for a program). Similar idea to what I'm trying to achieve, but in the context of mods.

I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.

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.