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.

Featured Replies

Posted

Good day,

I'm trying to get a second mod running from inside the run/mods folder, when ever I would test my current project.

For one I'm trying to make my current project based on one of my library's, second, since I would spawn an awful lot of new blocks during world creation, I would use a X-Ray mod in the past, in order to quickly verify my ore spawn is actually working.

Unfortunately I can't get any of the already compiled mods running from inside the run/mods folder. I remember this was perfectly possible in the past.

This is done by adding them as a dependency in your build.gradle file

Add this above dependencies:

repositories {
    maven {
        url "https://www.cursemaven.com"
    }
}

Then in dependencies add:

runtimeOnly fg.deobf("curse.maven:custom_name-project_id:file_id")

Replace custom_name with any name you want (I'd recommend just the mod namespace).

Replace project_id with the Project ID over on CurseForge.

Replace the file_id with the id of the mod file.

Read more explanation below.

 

An example of my dependencies, which adds the AttributeFix mod (https://www.curseforge.com/minecraft/mc-mods/attributefix

dependencies {
    implementation 'org.jetbrains:annotations:20.1.0'
    minecraft 'net.minecraftforge:forge:1.16.5-36.2.6'

    runtimeOnly fg.deobf("curse.maven:attributefix-280510:3232225") //AttributeFix Mod
}

 

The project ID can be found on CurseForge's main mod page of the mod you'd like to add

The file ID can be found by clicking the file, it will be the last digits in the URL.

E.g. for AttributeFix-1.16.5-10.1.2.jar the URL is: https://www.curseforge.com/minecraft/mc-mods/attributefix/files/3232225

In this case the file ID = 3232225

 

Be sure to refresh your gradle build before running the client, so the changes are actually applied.

Edited by Leronus

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.