Wanna help for adding dependencies

Started by RpxdYTX on Thu, 10/22/2020 - 13:48

Topic category: User side tutorials

Last seen on 12:42, 24. Nov 2020
Joined May 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Wanna help for adding dependencies
Thu, 10/22/2020 - 13:48

I'll teach you all to adding dependencies (note : im beginner on java and modding, so any error that u notice warn me pls)

first you'll need an IDE, than create a workspace with the exact forge version of the desired mod.

use the ide to enter the build.gradle file of your workspace. than after the last curly brace of buildscript, place:

repositories{
    maven{
    }
}
dependencies {
}

than inside maven place

name 'Curseforge Maven'
url = 'https://minecraft.curseforge.com/api/maven/'

inside dependencies place

deobfCompile '//mod original name or wathever (idk how they name that things).'

than run the task setupDecompWorkspace, restart your ide, refresh it (if possible, on mine workspace it isnt) using gradlew --refresh-dependencies.

and voila! if u want place the .jar file at libs (if dont exist libs click at build button) pick the sourcecode of mod rename it to .jar

than go place at libs or somewhere,

come back to build.gradle and put this

@Mod (dependencies = "// idk again the 'id(?)' of mod.")

and voila

runClient and minecraft will work with the mod, note: if the forgr version isnt exact it wont work.

 

Last seen on 12:42, 24. Nov 2020
Joined May 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
note im having trouble with …
Thu, 10/22/2020 - 14:27

note im having trouble with @Mod so can you help me out?