DO NOT ASK EMI MAINTAINERS FOR SUPPORT ON EMI CANARY
Caution
This project is not related to EMI. DO NOT bother Emi or the EMI maintainers
about EMI Canary, or you will be banned from EMI Canary spaces and your issues
will be closed.
EMI Canary
EMI is a featureful and accessible item and recipe viewer for Minecraft.
Developers
To add EMI to your project as a dependency you need to add the following to your build.gradle:
repositories {
maven {
name = "TerraformersMC"
url = "https://maven.terraformersmc.com/"
}
}How EMI gets added to your dependencies varies based on modloader and setup.
The Gradle property emi_version should be something like 1.0.0+1.19.4 with EMI's version and Minecraft's version.
Here are common dependency setups for different loaders and build systems.
dependencies {
// Fabric
modCompileOnly "dev.emi:emi-fabric:${emi_version}:api"
modLocalRuntime "dev.emi:emi-fabric:${emi_version}"
// Forge (see below block as well if you use Forge Gradle)
compileOnly fg.deobf("dev.emi:emi-forge:${emi_version}:api")
runtimeOnly fg.deobf("dev.emi:emi-forge:${emi_version}")
// NeoForge
compileOnly "dev.emi:emi-neoforge:${emi_version}:api"
runtimeOnly "dev.emi:emi-neoforge:${emi_version}"
// Architectury
modCompileOnly "dev.emi:emi-xplat-intermediary:${emi_version}:api"
// MultiLoader Template/VanillaGradle
compileOnly "dev.emi:emi-xplat-mojmap:${emi_version}:api"
}For Forge Gradle users, you will need to enable Mixin refmaps in your client sourceset. This can be done by adding 2 lines inside of your client runs, to look like below.
runs {
client {
// Add these two lines
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
// The rest of the code that was already here
// ...
}
}
