Is it possible to create an API for my Mod?

Started by SparkleArts on

Topic category: Help with MCreator software

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.

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

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

 

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.

Joined Aug 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Creating an API directly…
Sun, 06/04/2023 - 15:57

Creating an API directly inside MCreator is not possible yet

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?

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)

Joined Jul 2023
Points:

User statistics:

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

Thanks