Skip to content

Getting Started [Minecraft 1.21.11]

mezz edited this page Jul 10, 2026 · 1 revision

Note

Version note: This page covers Minecraft 1.21.11. This version uses separate common, NeoForge, and Fabric API artifacts.

Other setup pages:

Set up your Gradle build script

Repositories

repositories {
  maven {
    // location of the maven that hosts JEI files since January 2023
    name = "Jared's maven"
    url = "https://maven.blamejared.com/"
  }
  maven {
    // location of a maven mirror for JEI files, as a fallback
    name = "ModMaven"
    url = "https://modmaven.dev"
  }
}

Dependencies for NeoGradle (for NeoForge)

dependencies {
  /* other minecraft dependencies are here */

  // compile against the JEI API but do not include it at runtime
  compileOnly("mezz.jei:jei-${mc_version}-neoforge-api:${jei_version}")
  // at runtime, use the full JEI jar for NeoForge
  runtimeOnly("mezz.jei:jei-${mc_version}-neoforge:${jei_version}")
}

Dependencies for Loom (for Fabric)

Minecraft 1.21.11 uses Loom-remapped JEI Fabric artifacts, so use Loom's mod* configurations.

dependencies {
  /* other minecraft dependencies are here */

  // compile against the JEI API but do not include it at runtime
  modCompileOnlyApi("mezz.jei:jei-${mc_version}-fabric-api:${jei_version}")
  // at runtime, use the full JEI jar for Fabric
  modRuntimeOnly("mezz.jei:jei-${mc_version}-fabric:${jei_version}")
}

Choose a Version

${mc_version} gets replaced by 1.21.11.

${jei_version} gets replaced by the JEI version you want to use. Use a JEI version that was published for Minecraft 1.21.11.

The platform API artifacts depend on their matching common API artifact in their Maven POMs, so you do not need to declare the common API separately.

These properties can be set in a file named gradle.properties, placed in the same directory as your build.gradle file.

For example:

mc_version=1.21.11
jei_version=27.15.0.47

Why compile against the API?

The example script only compiles against the API, which is very stable. When you run your mod, the full JEI jar will run as well so that you can test with it in development.

If you compile against the full mod jar and then use classes from JEI that are not in the API, your mod could break any time JEI updates.

If you need a feature that is not in the API, ask on the issue tracker: https://github.com/mezz/JustEnoughItems/issues

Home

List of Plugin Implementations

Minecraft 26.1.2 and 26.2

  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 and 1.21.1

  1. Setup
  1. Ingredients and Search
  1. Recipes

Minecraft 1.18.2, 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