Is it possible to create an API for my Mod?

Started by SparkleArts on

Topic category: Help with MCreator software

Last seen on 11:06, 29. Mar 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to create an API for my Mod?

I wanna know if it possible to create an API inside of MCreator.

 

I have an Idea for an API but I wanna use MCreator.

Last seen on 01:47, 28. Feb 2024
Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think its possible, I…
Sat, 06/03/2023 - 16:26

I think its possible, I remember there being a dependency thing in the workspace settings

Last seen on 00:42, 10. Oct 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yep its possible. Heres an…
Sat, 06/03/2023 - 17:10

Yep its possible. Heres an example from my twilight forest api plugin:

---
forge-1.19.2:
 gradle: |
     repositories {
       maven {
           url = 'https://cursemaven.com'
       }
     }

     dependencies {
       implementation fg.deobf('curse.maven:the-twilight-forest-227639:4389567')
     }
 update_files:
   - ~

forge-1.19.4:
 gradle: |
     repositories {
       maven {
           url = 'https://cursemaven.com'
       }
     }

     dependencies {
       implementation fg.deobf('curse.maven:the-twilight-forest-227639:4539671')
     }
 update_files:
   - ~
name: "Twilight Forest"

 

---

File location: PluginName/apis/api_name.yaml

 

Last seen on 11:06, 29. Mar 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not talking about making…
Sat, 06/03/2023 - 18:29

I'm not talking about making an Plugin that adds an API.

I wanna create a Mod that is an API/Library and I wanna make it possible to others that there can add my Mod later to their Dev Environment.

Last seen on 15:11, 26. Aug 2023
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey, I need help trying to…
Mon, 07/24/2023 - 00:20

Hey, I need help trying to create an API. I followed the instructions on Mcreator website, but I don't know where the "apis" folder is supposed to go. Can You Help Please?

Last seen on 11:06, 29. Mar 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the "apis" folder goes as…
Tue, 08/15/2023 - 12:45

the "apis" folder goes as follows:

ROOT > apis > .yaml file (api files)

Last seen on 15:11, 26. Aug 2023
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks
Sat, 08/26/2023 - 15:14

Thanks