Skip to content
Smartin-b edited this page May 10, 2024 · 8 revisions

Welcome to the Modular-Item-API wiki! This wiki aims to provide documentation and best practices for handling datapacks and resources using the Modular Item API.

Getting Started

Datapack

All of the data for truly modular has to be stored in data/miapi for more info about the types you can visit this page

Java

latest version can be checked via the releases We recommend the usage of any Architectury Template, depending on Architectury is also recommended since Truly Modular already depends on it the miapi_version needed is the same as the github release tag. We also recommend the usage of yarn as we use yarn as well, but mojmaps should be fine as well

Common

repositories {
    maven {
        url 'http://trulymodular.duckdns.org/maven'
        allowInsecureProtocol = true
    }
    maven { url 'https://maven.uuid.gg/releases' }
    maven { url 'https://maven.terraformersmc.com/' }
    maven { url 'https://maven.theillusivec4.top/' }
    maven {
        url "https://maven.jamieswhiteshirt.com/libs-release"
        content {
            includeGroup "com.jamieswhiteshirt"
        }
    }
}
dependencies {
    modApi("com.Truly-Modular.Modular-Item-API:Truly-Modular-miapi-common:${rootProject.miapi_version}")
}

Fabric

dependencies {
    modApi("com.Truly-Modular.Modular-Item-API:Truly-Modular-miapi-fabric:${rootProject.miapi_version}")
}

Forge

dependencies {
    modApi("com.Truly-Modular.Modular-Item-API:Truly-Modular-miapi-forge:${rootProject.miapi_version}")
}