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

Started by Teyko on

Topic category: Help with MCreator software

Last seen on 14:56, 1. Oct 2023
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

Last seen on 14:56, 1. Oct 2023
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 ?

Last seen on 07:44, 6. Sep 2023
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')
}
Last seen on 18:00, 24. Sep 2024
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.