Help on adding external library

Started by CapCreeperGR on

Topic category: Advanced modding

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help on adding external library

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
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

Last seen on 14:56, 1. Oct 2023
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.