-
-
Notifications
You must be signed in to change notification settings - Fork 3
Developer Setup
The Daycare+ package is published on Jitpack for convenience.
The Daycare+ pom relies on Cobblemon, Polymer, Mod Menu, Cloth Config, LilyLib, and LilyCobble. You will need the following repositories block in order to access all of the dependencies.
repositories {
mavenCentral()
maven { url 'https://maven.nucleoid.xyz' }
maven { url "https://maven.impactdev.net/repository/development/" }
maven { url "https://maven.architectury.dev/"}
maven { url "https://maven.terraformersmc.com/releases/" }
maven { url "https://maven.shedaniel.me/" }
maven { url "https://jitpack.io" }
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}Daycare+ itself is a simple dependency though.
dependencies {
modImplementation 'com.github.Provismet:daycareplus:${project.daycareplus_version}'
}Daycare+ has a custom mod initialiser to help with optional dependencies: DaycarePlusInitializer (American spelling for consistency with Fabric, eugh).
The initialiser is called after Daycare+ has finished initialising but before Daycare+ registers its own compatibility hooks. It is highly recommended to use the initialiser if you want your mod to have optional interactions with Daycare+, it'll save you from having to manually check if the mod's classes are present.