The Galacticraft addon API.
Here are a list of features, both planned and implemented.
- Celestial bodies.
- Celestial body registry.
- Celestial body display info.
- Atmospheric Info.
- Atmospheric Gases.
- Rockets/Rocket parts.
In your mod's build.gradle
(Groovy) or build.gradle.kts
(Kotlin):
Important Note
Replace {VERSION}
with the version of Galacticraft you want to use.
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
.
For more versioning information visit the semver website.
-
Add the Team Galacticraft maven repository
-
Groovy
repositories { maven { url "https://maven.galacticraft.dev/repository/maven-releases/" } }
-
Kotlin
repositories { maven("https://maven.galacticraft.dev/repository/maven-releases/") }
-
-
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.json
in thedepends
section.{ "depends": { "galacticraft-api": ">={VERSION}" }, "suggests": { "galacticraft": ">={VERSION}" } }