Repository navigation
Getting Started
Note
Version note: This page covers Minecraft 1.12.2 for Forge.
Other setup pages:
- Minecraft 1.16.5: Getting Started
- Minecraft 1.19.2 and 1.20.1: Getting Started
- Minecraft 1.21–1.21.1: Getting Started
- Minecraft 1.21.11: Getting Started
- Minecraft 26.1.2–26.3: Getting Started
Start with an existing Minecraft project targeting Java 8. Choose your mod loader below, then expand the option matching your project's build tool.
The badges show the latest JEI versions for each Minecraft version and mod loader. Click a badge to browse releases.
| Minecraft | Forge |
|---|---|
| 1.12.2 |
Add the matching versions to gradle.properties beside your build.gradle:
mc_version=1.12.2
jei_version=<matching JEI version>repositories {
maven { url = "https://dvs1.progwml6.com/files/maven/" }
maven { url = "https://maven.blamejared.com/" }
}RetroFuturaGradle
Start from a RetroFuturaGradle project with 1.12.2 support.
Add this configuration to build.gradle if it is not already present:
configurations {
localRuntime {
canBeConsumed = false
canBeResolved = false
}
runtimeClasspath.extendsFrom localRuntime
}dependencies {
// Compile against the JEI API without adding it as a runtime dependency.
compileOnly(rfg.deobf("mezz.jei:jei_${mc_version}:${jei_version}:api"))
// Load the full JEI mod for development testing on Forge.
localRuntime(rfg.deobf("mezz.jei:jei_${mc_version}:${jei_version}"))
}ForgeGradle 7 + Renamer
In your existing FG7 project, add Renamer to the plugins block:
plugins {
id 'net.minecraftforge.renamer' version '1.1.2'
}Add this configuration to build.gradle if it is not already present:
configurations {
localRuntime {
canBeConsumed = false
canBeResolved = false
}
runtimeClasspath.extendsFrom localRuntime
}Add this line after the dependencies block that declares Minecraft:
renamer.mappings.from minecraft.dependency.toSrgFiledependencies {
// Compile against the JEI API without adding it as a runtime dependency.
compileOnly(renamer.dependency("mezz.jei:jei_${mc_version}:${jei_version}:api"))
// Load the full JEI mod for development testing on Forge.
localRuntime(renamer.dependency("mezz.jei:jei_${mc_version}:${jei_version}"))
}For a new project, start from Forge's 1.12.2 FG7 example.
ForgeGradle 3–6 / RetroGradle
Add this configuration to build.gradle if it is not already present:
configurations {
localRuntime {
canBeConsumed = false
canBeResolved = false
}
runtimeClasspath.extendsFrom localRuntime
}dependencies {
// Compile against the JEI API without adding it as a runtime dependency.
compileOnly(fg.deobf("mezz.jei:jei_${mc_version}:${jei_version}:api"))
// Load the full JEI mod for development testing on Forge.
localRuntime(fg.deobf("mezz.jei:jei_${mc_version}:${jei_version}"))
}ForgeGradle 2
Add these dependencies to build.gradle:
dependencies {
// Compile against the JEI API.
deobfProvided "mezz.jei:jei_${mc_version}:${jei_version}:api"
// Load the full JEI mod for development testing on Forge.
runtime "mezz.jei:jei_${mc_version}:${jei_version}"
}Run gradlew setupDecompWorkspace, then reload your Gradle project in the IDE.
Compiling against the API helps keep your integration compatible with JEI updates. The runtime dependency adds JEI to your development game for testing.
If you need an API feature, ask on the issue tracker.
List of Plugin Implementations
- Setup
- Ingredients and Search
- Recipes
- Overview/What To Do
- Custom Machine Recipes
- Recipe Categories
- Recipe Transfer
- Vanilla Recipe Extensions
- Screen Integration
- Setup
- Ingredients and Search
- Recipes
- Overview/What To Do
- Custom Machine Recipes
- Recipe Categories
- Recipe Transfer
- Vanilla Recipe Extensions
- Screen Integration
- Setup
- Ingredients and Search
- Recipes
- Setup
- Item Ingredients
- Working with Recipes
- Essential Extras
- Advanced
- Setup
- Item Ingredients
- Working with Recipes
- Essential Extras
- Advanced
- Setup
- Item Ingredients
- Working with Recipes
- Essential Extras
- Advanced