Help on adding external library

Started by CapCreeperGR on Sun, 01/24/2021 - 09:40

Topic category: Advanced modding

Last seen on 11:19, 24. Jan 2021
Joined Jan 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Help on adding external library
Sun, 01/24/2021 - 09:40

Hello! I am trying to add the galacticraft api to mcreator and use it to create custom planets and solar systems with custom elements but I am not sure how to do that. I added it in the external APIs tab in workspace settings and it could detect if I had the mod installed or not but the problem is I can not use its code on custom elements. I am pretty sure I need to import its .jar file somehow but I can't find how? Can anyone help me?

Last seen on 11:19, 24. Jan 2021
Joined Jan 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Nevermind I found out how to…
Sun, 01/24/2021 - 11:18

Nevermind I found out how to do it. I just added this code

flatDir {
    dirs 'libs'
}

to the repositories in the build.gradle file. Now any library that's in the libs folder will automatically get added

Use gradle to manage…
Mon, 01/25/2021 - 09:20

Use gradle to manage libraries, do not manually add them whenever possible.

Last seen on 16:50, 28. Feb 2021
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hey ! Where is the libs…
Sun, 02/28/2021 - 16:38

Hey !
Where is the libs folder ?
I have add the

flatDir {
    dirs 'libs'
}

to my build.gradle repositories

buildscript {
    repositories {
        maven { url = 'https://files.minecraftforge.net/maven' }
        jcenter()
        mavenCentral()
		flatDir {
			dirs 'libs'
		}
    }
    dependencies {
        classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
    }
}

but i didn't find the libs folder what you say.