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.

[SOLVED] [1.14.4] Intellij/gradle setup to work with mod as library

Featured Replies

Posted

Hi,

I am the developer of these mods:  Amazing Minecraft Mods, (for 1.7.10), and now I am writing mods for 1.14.4.

Everything is going very well except one thing: I want to work with Intellij and use one of my mods as library methods for another mod.

 

What I have:

1. Two mods called InventoryPlus and HostileLands (these are the main mods)

2. Another mod called GnRSharedLib (this is a mod but it does nothing, I just have all shared methods inside it)

 

I want to use GnRSharedLib mod as library for InventoryPlus and HostileLands, so I compiled the gnrsharedlib into a deob jar and changed build.gradle of inventoryPlus and HostileLands this way:

dependencies {
	minecraft 'net.minecraftforge:forge:1.14.4-28.2.10'
	compile files('../GnrSharedLib/build/libs/gnrsharedlib-1.14.4-1.0.0.0-deobf.jar')
}
compileJava {
    exclude '../GnrSharedLib/build/libs/gnrsharedlib-1.14.4-1.0.0.0-deobf.jar'
}

 

I can test the mod in dev environment and it works, but when I click in Minecraft MODS button and click the GnRSharedLib mod in the list, the game crashs

The same thing happens in Minecraft final release with my mods inside mods folder

 

This is the log:

Crash Log

 

If someone have an idea on how can I do this, I'll appreciate.

Thank you for your patience and sorry for english mistakes, I 'm from Brazil.

 

†GnR† Slash

Edited by GnRSlashSP
problem solved

†GnR† Slash

can one man truly make a difference?

  • Author

I think I solved this issue...

 

GnRSharedLib has a pack.metadata and inside it has a description key. Instead of write gnrsharedlib I wrote GnRSharedLib (using caps....)

 

†GnR† Slash

can one man truly make a difference?

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.