π¦Depending on Create Encased
This page describes how a mod developer can add a dependency on Create Encased.
Depending on Create Encased require Create Dependency
Versions
Create version:
Create Encased version:
Minecraft version: 1.18.2/1.19.2/1.20.1/1.21.1
Quick Access
If you are an add-on developer, you will need both a development environment dependency and a production environment dependency.
If you are not an add-on developer, you will only need a development environment dependency.
Types of Dependencies
Development Environment Dependency
This type of dependency is added to the Gradle buildscript so that Gradle and your IDE can find Create Casing's code.
Configuration
Add the following code to your build.gradle file. It defines the Maven repo, where CreateCasing jars are hosted.
Add the following code to your build.gradle file. It defines the Create Encased dependencies.
Add the following properties to your gradle.properties file.
For 1.21.1
For 1.20.1
Production Environment Dependency
This type of dependency is added to the mods.toml file so that Forge/Neoforge knows your mod will not work without a certain version of Create Encased. This type of dependency is only useful if a development environment dependency was also added. This type of dependency should not be added if your mod is able to work in a production environment without Create Encased.
Configuration
Add the following dependency definition to your mods.toml file.
This tells Forge/Neoforge that your mod depends on Create Encased.
If Create Encased is not present, or is outdated, Forge/Neoforge will display an error screen explaining this to the user.
This page is inspired from Create Wiki Page
Last updated