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')
}