[Bug]: `Mapping target name conflicts detected` when attempting to use JEI Fabric API on 1.21.10
Closed this issue ยท 1 comments
Steps to Reproduce the Bug
- Setup a Fabric Loom project,
- Add the following in
build.gradle:
repositories {
maven {
name = "Jared's maven"
url = "https://maven.blamejared.com/"
}
}
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
// compile against the JEI API but do not include it at runtime
modCompileOnlyApi("mezz.jei:jei-${project.minecraft_version}-fabric-api:${project.jei_version}");
// at runtime, use the full JEI jar for Fabric
modRuntimeOnly("mezz.jei:jei-${project.minecraft_version}-fabric:${project.jei_version}")
include modApi('teamreborn:energy:4.2.0')
}
and the following in gradle.properties:
# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.21.10
yarn_mappings=1.21.10+build.2
loader_version=0.17.3
loom_version=1.11-SNAPSHOT
# Dependency Properties
jei_version=26.0.0.4
- Run
gradle runClientor otherwise attempt to build the project.
Expected Behavior
The build should succeed and the game should launch.
Actual Behavior
Gradle reports the following error:
apping target name conflicts detected:
METHODs mezz/jei/library/plugins/vanilla/crafting/JeiShapedRecipe/[net/minecraft/class_1860/method_64664, getDisplays]()Ljava/util/List; -> getDisplays
There were unfixable conflicts.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'dyntech'.
> Failed to setup Minecraft, java.lang.RuntimeException: Failed to remap 3 mods
Additionally, the following errors are reported: https://pastebin.com/NXsDi7ZB (in a pastebin because they would not fit).
Mod Pack URL (Optional)
No response
Mod Pack Version (Optional)
No response
Extra Notes (Optional)
No response
latest.log
No response