Just Enough Items (JEI)

Just Enough Items (JEI)

369M Downloads

[Crash]: Crashes on Forge 1.20.1 when game starts

goshante opened this issue ยท 1 comments

commented

Steps to Reproduce the Crash

  1. Setup Intellij IDEA project with this versions:
  • Gradle version 8.4 (Groovy 3.0.17)
  • Minecraft version: 1.20.1
  • Forge version: 47.3.7
  • Parchment version: 2023.09.03-1.20.1
  • JEI plugin version: 15.19.0.88
  • JDK: Oracle JDK 17.0.8
  • Dependencies:
compileOnly fg.deobf("mezz.jei:jei-${mc_version}-common-api:${jei_version}")
compileOnly fg.deobf("mezz.jei:jei-${mc_version}-forge-api:${jei_version}")
runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}-forge:${jei_version}")
  1. Create a JEI Proxy class that implements IModPlugin interface
  2. Download latest JEI for Forge 1.20.1 from Curse (jei-1.20.1-forge-15.19.0.88.jar) and put it into your minecraft development build (YourProject/run/mods)
  3. Build your project and run "runClient" task
  4. You will see a crash with an error:
    java.lang.NoSuchMethodError: 'java.lang.String net.minecraft.client.resources.language.I18n.m_118938_(java.lang.String, java.lang.Object[])'

Mod Pack URL (Optional)

No response

Mod Pack Version (Optional)

No response

Extra Notes (Optional)

Didn't noticed behavior like that on neoforge 1.21.1, jei plugin works and recipes are displayed correctly.
Also if install older version of mod but stay on latest plugin version, for (example jei-1.20.1-forge-15.17.0.77.jar) game stops crashing, but added recipes are not working at all.
And if lower version of plugin to the same as mod (15.17.0.77) you will see this error again.

Also noticed that when I copy my mod and JEI .jars for example to MultiMC minecraft mods folder and run this MC instance it runs without crashes. But JEI recipes on 1.20.1 build are not working for no reason.

Crash Report

Client log

commented

My issue, adding mods manually instead of using runtime dependencies