How import an external lib (for create Discord RichPresence in my mod) ?

Started by Teyko on

Topic category: Help with MCreator software

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How import an external lib (for create Discord RichPresence in my mod) ?

Hi ! I would like to import an external jar libraries to my project for create DiscordRichPresence in an "Custom Element".
I try to click add in the file tree but nothing appear...
File Tree MCreator

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi Kelemen, thanks for your…
Tue, 03/02/2021 - 11:47

Hi Kelemen, thanks for your reply but how i add this to the build.gradle ? Can u give me an example plz ?

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You must locate the build…
Wed, 09/06/2023 - 07:44

You must locate the build.gradle file and inside:

dependencies {

minecraft 'net.minecraftforge:forge:1.20.1-47.1.0'
    // Add maven dependency implementation
implementation com.company.namelibrary:namelibrary1.0.0'
    // Add .jar files
implementation files('libs\\name_library.jar')
}
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey, could u make an exemple…
Tue, 09/24/2024 - 18:00

Hey, could u make an exemple? Im trying to add the "owo" lib, so that i can have a custom settings section for my mod. I think i might have figured out what to put on the first 2 lines, but i cant understand what should be put on the "add .jar files" (and the following) line. This is what i've done:

dependencies {
   implementation 'net.neoforged:neoforge:20.6.117'
    
    maven { url 'https://maven.wispforest.io/releases/' }
    modImplementation "io.wispforest:owo-lib:${project.owo_version}"
    
    //what sould i put here? how should the lines look like?
}

Im using MCreator 2024.2 and NeoForge 1.20.6, if it can be of any help.

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Pls i really need help. If u…
Wed, 09/25/2024 - 12:34

Pls i really need help. If u cant manage to make this lib work, then im also trying another one wich is MidnightLib, that i'll be using for the same purpose.

This is the MidnightLib Wiki: https://www.midnightdust.eu/wiki/midnightlib/