Adding Tardis Refined to your Project
In order to add Tardis Refined to your project and begin developing, you will need to create a architectury project
You will need to ensure that your architectury project has the correct Minecraft Version setup in order to begin developing. Throughout this guide, we assume you have at least some experience with writing in Java, and creating Minecraft Mods.
Repository Management
In order to source Tardis Refined, we will be using the Modrinth maven. This helps to assist in developing against released versions in order to maintain addon mod compatibility. We will also add some other mavens in order to source required dependencies for the project
Within your project, locate the build.gradle
found at the route of your project and navigate to the allProjects block
Within this block, find the repositories sub-block, this may already have content in it
Once located, add the following Maven Repositories
Preparing gradle.properties
Locate the gradle.properties within the root of your project, and open it
Within this file, add the following entries:
You will want to update these values based on the Minecraft Version you are using, you can potentially use the Tardis Refined Github Repository to find relevant values
Adding to Common & Fabric Modules
In order to reference and code against the mod, we must mainly add it to the common and fabric modules, enter the common module and locate the build.gradle
Common Build Gradle | Fabric Build Gradle | Forge Build Gradle |
Once you have entered the file, locate the dependencies block which should look something like:
Update the dependencies block to look like this
Adding to Forge Module
Following from earlier, we navigate to the Forge build.gradle
which has a different yet similar approach, where we add the following