Creators-of-Create / Create

[Forge Mod] Building Tools and Aesthetic Technology
MIT License
2.86k stars 897 forks source link

org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException: @Shadow method m_21211_ in create.mixins.json:CustomItemUseEffectsMixin was not located in the target class net.minecraft.world.entity.LivingEntity. Using refmap create.refmap.json #6900

Closed redwoodsteve closed 3 weeks ago

redwoodsteve commented 3 weeks ago

Context

I am making a Create addon in IntelliJ Idea, when I put Create in the run\mods folder, I get mixin errors like org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException: @Shadow method m_21211_ in create.mixins.json:CustomItemUseEffectsMixin was not located in the target class net.minecraft.world.entity.LivingEntity. Using refmap create.refmap.json. When I remove the Create mod everything works fine. image

Crash Report

https://mclo.gs/thekuL2

PepperCode1 commented 3 weeks ago

Set up Mixin refmap remapping as explained on the wiki.

PepperCode1 commented 3 weeks ago

Additionally, adding files to the mods folder in a development environment rarely works correctly. ForgeGradle manages this functionality, not Create.