GalacticraftAPI
Addon API for modern versions of Galacticraft.
Install / Use
/learn @TeamGalacticraft/GalacticraftAPIREADME
Galacticraft API
The Galacticraft addon API.
Features
Here are a list of features, both planned and implemented.
- [x] Celestial bodies.
- [x] Celestial body registry.
- [x] Celestial body display info.
- [x] Atmospheric Info.
- [x] Atmospheric Gases.
- [ ] Rockets/Rocket parts.
Installing
In your mod's build.gradle (Groovy) or build.gradle.kts (Kotlin):
Replace {VERSION} with the version of Galacticraft you want to use.<br>
Versions use the format MAJOR.MINOR.PATCH[-TYPE]+MC_VERSION, e.g. 0.1.0-alpha+1.14.4 & 1.0.0+1.15.1.<br>
For more versioning information visit the semver website.
-
Add the Team Galacticraft maven repository
-
<details>
<summary>Groovy</summary>
</details>repositories { maven { url "https://maven.galacticraft.dev/repository/maven-releases/" } } -
<details>
<summary>Kotlin</summary>
</details>repositories { maven("https://maven.galacticraft.dev/repository/maven-releases/") }
-
<details>
<summary>Groovy</summary>
-
Add Galacticraft API as a dependency
Mostly the same for both Groovy and Kotlin, adjust as needed
dependencies { // add both the addon api and mod but only include the addon api modImplementation("dev.galacticraft:GalacticraftAPI:{VERSION}") //modRuntimeOnly("dev.galacticraft:Galacticraft:{VERSION}") // not up yet } -
Add the Addon API to your
fabric.mod.jsonin thedependssection.{ "depends": { "galacticraft-api": ">={VERSION}" }, "suggests": { "galacticraft": ">={VERSION}" } }
