Skip to content

Getting Started [Minecraft 1.19.2 and 1.20.1]

mezz edited this page Nov 22, 2026 · 1 revision

Note

Version note: This page covers Minecraft 1.19.2 and 1.20.1 for Forge and Fabric.

Other setup pages:

Set up your Gradle build script

Start with an existing Minecraft project targeting Java 17. Choose your mod loader below, then expand the option matching your project's build tool.

Choose a Version

The badges show the latest JEI versions for each Minecraft version and mod loader. Click a badge to browse releases.

Minecraft Forge Fabric
1.19.2 JEI for Forge 1.19.2 JEI for Fabric 1.19.2
1.20.1 JEI for Forge 1.20.1 JEI for Fabric 1.20.1

Add the matching versions to gradle.properties beside your build.gradle:

mc_version=1.20.1
jei_version=<matching JEI version>

Maven repositories

repositories {
  maven { url = "https://maven.blamejared.com/" }
}

Forge

Choose the MezzConfig release for your Minecraft version:

Minecraft MezzConfig
1.19.2 MezzConfig for Minecraft 1.19.2
1.20.1 MezzConfig for Minecraft 1.20.1

Copy the version shown in the matching badge into gradle.properties:

mezz_config_version=<version shown above>
Legacy ModDevGradle

Configure your Forge project with Legacy ModDevGradle, then add the development dependencies below.

Add this configuration to build.gradle if it is not already present:

configurations {
  localRuntime {
    canBeConsumed = false
    canBeResolved = false
  }
  runtimeClasspath.extendsFrom localRuntime
}

Add the following configuration and dependencies:

obfuscation.createRemappingConfiguration(configurations.localRuntime)
dependencies {
  // Compile against the JEI API without adding it as a runtime dependency.
  modCompileOnly("mezz.jei:jei-${mc_version}-forge-api:${jei_version}")
  modCompileOnly("mezz.jei:jei-${mc_version}-common-api:${jei_version}")

  // Load the full JEI mod for development testing on Forge.
  modLocalRuntime("mezz.jei:jei-${mc_version}-forge:${jei_version}")

  // Load MezzConfig alongside JEI so JEI can start.
  modLocalRuntime("net.mezzdev.config:mezz_config-${mc_version}-forge:${mezz_config_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.toSrgFile
dependencies {
  // Compile against the JEI API without adding it as a runtime dependency.
  compileOnly(renamer.dependency("mezz.jei:jei-${mc_version}-forge-api:${jei_version}"))
  compileOnly(renamer.dependency("mezz.jei:jei-${mc_version}-common-api:${jei_version}"))

  // Load the full JEI mod for development testing on Forge.
  localRuntime(renamer.dependency("mezz.jei:jei-${mc_version}-forge:${jei_version}"))

  // Load MezzConfig alongside JEI so JEI can start.
  localRuntime(renamer.dependency("net.mezzdev.config:mezz_config-${mc_version}-forge:${mezz_config_version}"))
}
ForgeGradle 5/6

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}-forge-api:${jei_version}"))
  compileOnly(fg.deobf("mezz.jei:jei-${mc_version}-common-api:${jei_version}"))

  // Load the full JEI mod for development testing on Forge.
  localRuntime(fg.deobf("mezz.jei:jei-${mc_version}-forge:${jei_version}"))

  // Load MezzConfig alongside JEI so JEI can start.
  localRuntime(fg.deobf("net.mezzdev.config:mezz_config-${mc_version}-forge:${mezz_config_version}"))
}

Fabric

Fabric Loom

Add these dependencies to build.gradle:

dependencies {
  // Compile against the JEI API without adding it as a runtime dependency.
  modCompileOnly("mezz.jei:jei-${mc_version}-fabric-api:${jei_version}")

  // Load the full JEI mod for development testing on Fabric.
  modLocalRuntime("mezz.jei:jei-${mc_version}-fabric:${jei_version}")
}

Why compile against the API?

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.

Home

List of Plugin Implementations

Minecraft 26.1.2–26.3

  1. Setup
  1. Ingredients and Search
  1. Recipes
  1. Screen Integration

Minecraft 1.21.11

  1. Setup
  1. Ingredients and Search
  1. Recipes
  1. Screen Integration

Minecraft 1.21–1.21.1

  1. Setup
  1. Ingredients and Search
  1. Recipes

Minecraft 1.19.2 and 1.20.1

  1. Setup
  1. Item Ingredients
  1. Working with Recipes
  1. Essential Extras
  1. Advanced

Minecraft 1.16.5

  1. Setup
  1. Item Ingredients
  1. Working with Recipes
  1. Essential Extras
  1. Advanced

Minecraft 1.12.2

  1. Setup
  1. Item Ingredients
  1. Working with Recipes
  1. Essential Extras
  1. Advanced

Clone this wiki locally