Posted October 10, 20196 yr I know this is probably gonna sound stupid to most people but I am just now learning minecraft modding. I've done Java development for a few years now, and I've been doing minecraft spigot/bukkit/paper/etc plugins for a while. I decided to get into modding because I got a good offer on a mod I need to make, so I am learning the process right now. The issue I'm having is just an import issue, I am trying to use the "@Mod" annotation, but I'm getting an error for it, so I need to import net.minecraftforge.fml.common.Mod. The issue is that import isn't getting recognized. So I went into the build path (Im using eclipse btw), and couldn't figure out what I was missing, I did everything every tutorial said and still cannot figure out the issue. I'm sure this is a fairly basic problem for most of you so any answers would be much appreciated, which file am I missing, and where do I put it?
October 10, 20196 yr Perhaps you're missing the reference libraries Edited October 10, 20196 yr by Differentiation
October 10, 20196 yr Author This img is my Reference Libraries, It only has the one item, what do I need to add to it? @Differentiation
October 10, 20196 yr 1 minute ago, Jaccub said: This img is my Reference Libraries, It only has the one item, what do I need to add to it? @Differentiation All of the Forge API. Did you install Forge MDK? Go to Forge website and download the latest version of forge for whichever MC version you're using and download its MDK.
October 10, 20196 yr Then just set the workspace in the file where you want your mod to be with all the libraries and stuff.
October 10, 20196 yr Author Yeah I downloaded the mdk for 1.8.9 already, I copy and pasted them into the workspace folder, I did that twice while trying to figure this out before coming to the forums, here's a screenshot of the zipped folder right after I downloaded it- am I missing anything in there? This was BEFORE I copy and pasted to the workspace folder for eclipse btw Edited October 10, 20196 yr by Jaccub
October 10, 20196 yr Author Can you give me a link to a place 1.8.9 is still supported? Because if I can still download the mdk for 1.8.9, there should still be support somewhere
October 10, 20196 yr Author Is 1.14.4 the only other option? How far back can I go with the forge mdk? I need the lowest possible version down to 1.8.9
October 10, 20196 yr Author Alright thank you, I'll try to redo this with 1.12.2, if anyone else who reads this post has a solution for 1.8.9 please let me know
October 10, 20196 yr Author Okay well I switched everything to 1.12.2 and the same import error is there
October 10, 20196 yr Author I took the files from the 1.12.2 forge mdk, and put them into a separate folder just for organization purposes, then I opened a cmd and did "cd directory" then "gradlew setupcompworkspace" then "gradlew eclipse", then I launched eclipse, and made a new project, I selected Gradle Project and changed the directory from my plugin/software development work-space to the before mentioned separate folder for organizing my projects, for that project specifically. Everything looked good with all the src files and system libraries and such. It all looks like the tutorials I followed for the setup process.
October 10, 20196 yr 1 hour ago, Jaccub said: I took the files from the 1.12.2 forge mdk, and put them into a separate folder just for organization purposes, then I opened a cmd and did "cd directory" then "gradlew setupcompworkspace" then "gradlew eclipse", then I launched eclipse, and made a new project, I selected Gradle Project and changed the directory from my plugin/software development work-space to the before mentioned separate folder for organizing my projects, for that project specifically. Everything looked good with all the src files and system libraries and such. It all looks like the tutorials I followed for the setup process. Use this guy's tutorial. It's very good if you follow it in the exact order, step-by-step. Edited October 10, 20196 yr by Differentiation
October 10, 20196 yr 2 hours ago, Jaccub said: setupcompworkspace The command should be gradlew setupDecompWorkspace VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
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.