Posted June 21, 20241 yr Trying again to get into Minecraft modding, I was able to import the Forge MDK into Eclipse after some confusion, but all of the imports in ExampleMod.java are highlighted in red with an error saying they can't be resolved, and all references to any type can't be resolved either. Any type, including String. Only the simplest types like int, along with types defined in the same package work fine. I tried right-clicking on the project, going to Gradle > Refresh Gradle Project and also running gradlew --refresh-dependencies but neither of those seem to have had any noticeable effect. The mod builds just fine in spite of the errors, though I doubt I'll be able to get anything done with Eclipse constantly screaming at me. Edited June 25, 20241 yr by Tiny Desk Engineer Include more potentially useful details
June 21, 20241 yr is usual than the imported classes changes in name and int path from version to version are you sure the code you are putting is for the version you are trying to run
June 21, 20241 yr Author 5 hours ago, perromercenary00 said: is usual than the imported classes changes in name and int path from version to version are you sure the code you are putting is for the version you are trying to run The version of what? I just imported the MDK into Eclipse. I haven't made any edits to the Java code in it or even any other files. I haven't even gotten to changing the modid from "examplemod" yet.
June 23, 20241 yr Author Still haven't figured anything out. Not even types like String or Object can be resolved. Value types like int seem to be fine though.
June 25, 20241 yr Author ...I decided to try and write code for just one item in spite of the constant errors, and now Eclipse is complaining that "override" cannot be resolved to a type when I tried to override onItemRightClick.
June 25, 20241 yr Author ...Aaand build failed. It would sure be nice if I could fix these errors so Eclipse would start functioning as an IDE and stop being a glorified Notepad.
July 2, 20241 yr Author I got Eclipse to recognize String as a valid type. Still have no idea where I'm supposed to get any of the other packages.
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.