unroman / blueprint

Library that implements the framework of all Abnormals mods

Home Page:https://www.curseforge.com/minecraft/mc-mods/blueprint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Banner

Team Abnormals Website Team Abnormals Discord Team Abnormals Twitter Team Abnormals Patreon

πŸ“– About

Blueprint is a mod library developed for easily accessing code which is shared across most Team Abnormals mods. It comes with many useful features, such as a registry helper, data syncing, various data-driven modification systems, and the Endimator animation API.

πŸ’» For Developers

Adding Blueprint to your mod is quite simple!

First off you need to add Blueprint as a dependency to access the library in code. To do so, add the following into your build.gradle:

repositories {
    maven {
        url = "https://maven.jaackson.me"
    }
}

dependencies {
    implementation fg.deobf("com.teamabnormals:blueprint:<version>")
}

Replace <version> with the desired version of Blueprint, including the desired version of Minecraft.
For example, 1.18.2-5.3.1 will give us blueprint-1.18.2-5.3.1.jar.

Next, you need to add two properties to your runs in your build.gradle:

property "mixin.env.remapRefMap", "true"
property "mixin.env.refMapRemappingFile", "${projectDir}/build/createSrgToMcp/output.srg"

Your runs in your build.gradle are found under minecraft{runs{}}.

Next you need to add it as a dependecy on Forge to make your mod require Blueprint when loading. In your mods.toml, add the following block to the file:

[[dependencies.<modId>]]
    modId = "blueprint"
    mandatory = true
    versionRange = "[<version>,)"
    ordering = "BEFORE"
    side = "BOTH"

Replace <version> with the desired version of Blueprint.
For example, 5.3.1 will target version 5.3.1 of Blueprint.
The code block above for the mods.toml is targeting the version selected and any versions beyond. If you want to target it differently, you may want to read up on the mods.toml spec.

πŸ“¦ Our Mods

About

Library that implements the framework of all Abnormals mods

https://www.curseforge.com/minecraft/mc-mods/blueprint

License:Other


Languages

Language:Java 99.7%Language:GLSL 0.3%