Jump to content

[1.16.5] Could not find method deobfProvided while loading mod dependencies


Recommended Posts

Posted

I am trying to add jei as a dependency to my mod, but I can't seem to get it to work. Using the instructions given here, I keep getting the following error:

  Reveal hidden contents

I guess the tutorial given is now outdated, but I am new to gradle so I have no idea how to fix it. I am using forge 1.16.5-36.1.0, gradle 6.8.1 and jei 1.16.5-7.7.1.110, which seems to be the latest version, Here are my build.gradle and gradle.properties files:

build.gradle:

  Reveal hidden contents

gradle.properties:

# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
mc_version=1.16.5
jei_version=7.7.1.110

Any help would be appreciated. If you need any more information, I'll try to give it as soon as possible.

Posted

Thank you, with this and the new documentation (didn't realize the one I was using was for 1.12, it came up first in Google), I got it to work and I have JEI when starting the game. This is the new dependency block of the build.gradle if it can help anyone:

    compileOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}:api")
    runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}")

using the same gradle.properties as in the original post.
 

Note: To have access to the API classes in your code, you need to refresh the gradle project. See https://stackoverflow.com/questions/17907927/update-my-gradle-dependencies-in-eclipse.

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.