Posted September 2, 20169 yr Hey I posted this before for 1.7.10 and was notified that 1.7.x is no longer supported on these forums and to come back when I updated. So I updated my mod to 1.8.9 and I'm unfortunately still getting the exact same error. I'm trying to use WorldEdit as an optional dependency, but I'm having some ClassNotFound exceptions. I have WorldEdit declared as an optional dependency in my main class dependencies = "required-after:Forge@[11.15.1.1722,);after:WorldEdit" And also have it as a compile dependency in my build.gradle compile files('lib/worldedit.jar') It compiles fine with no errors, but then when I run it (with WorldEdit in the mods folder) it gives me a ClassNotFoundException. Here's the error: (only my mod and WorldEdit in the mods folder) http://pastebin.com/a7vYXinm I'm using one import for the ForgeWorldEdit main class in my main mod class and there's one other class that simply implements the WorldEdit permissions interface. And all that does is define the methods. If you'd like to see that I can post it. What am I doing wrong here? I can't figure it out. Thank you for any help!
September 2, 20169 yr Author The ModID for WorldEdit is "worldedit", not "WorldEdit". Thank you. I thought I had changed that before but apparently not. I feel really dumb now. Thank you.
September 2, 20169 yr Author Although, I just tested and the error comes back when I remove WorldEdit from the mods folder. I want it to be an optional dependency is there a way to do this? EDIT: Since I couldn't find a way I ended up just going with a small amount of reflection to get rid of the WorldEdit imports. Anyway thanks for you're help.
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.