Posted March 15, 201510 yr Arch Linux x86_64. I've downloaded the latest Minecraft Forge src, unzip it and run the commands: $ ./grandlew setupDecompWorkspace --refresh-dependencies **************************** Powered By MCP: http://mcp.ocean-labs.de/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs MCP Data version : snapshot_20141130 **************************** :extractMcpData :getVersionJson :extractUserDev :genSrgs SKIPPED :extractNatives :copyNativesLegacy :getAssetsIndex :getAssets :makeStart SKIPPED :downloadMcpTools SKIPPED :downloadClient SKIPPED :downloadServer SKIPPED :mergeJars SKIPPED :deobfuscateJar SKIPPED :decompile SKIPPED :processSources SKIPPED :remapJar SKIPPED :extractMinecraftSrc SKIPPED :recompMinecraft SKIPPED :repackMinecraft SKIPPED :setupDecompWorkspace UP-TO-DATE BUILD SUCCESSFUL Total time: 1 mins 28.31 secs $ ./grandlew eclipse **************************** Powered By MCP: http://mcp.ocean-labs.de/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs MCP Data version : snapshot_20141130 **************************** :eclipseClasspath :eclipseJdt :eclipseProject :eclipse BUILD SUCCESSFUL Total time: 33.346 secs But dir "eclipse" still empty and dir "src/" contains only "main/java/com/example/examplemod" with one file "ExampleMod.java" and "main/resources" with one file "mdmod.info". As result, all Minecraft Forge imports don't work. Where is the problem?
March 15, 201510 yr Author I followed this manual: http://www.minecraftforge.net/wiki/Installation/Source. Sorry for typo, gradlew.
March 15, 201510 yr Author I lost the console window with command and closed the manual, so I don't copy-paste that. But if there is no error, why sources don't appear? Or I need to download something additional before running the script?
March 15, 201510 yr Author Ok, what I should do to get Minecraft sources in eclipse workspace and get imports like import cpw.mods.fml.common.Mod; work?
March 15, 201510 yr Author Ok, but I have not package net.minecraftforge.fml too. This is the structure of "src" dir: src └── main ├── java │ └── com │ └── example │ └── examplemod │ └── ExampleMod.java └── resources └── mcmod.info And how to get sources of Minecraft in eclipse workspace?
March 15, 201510 yr If you ran "gradle setupDecompWorkspace eclipse" You have it, it isn't under your source because you don't need the minecraft source in your source, it's under referenced libraries
March 15, 201510 yr If you are not understanding what people are telling you, you need to research a bit about what a library (a jar file in the Java world) is. just you wait!
March 15, 201510 yr Author I found it in referenced libraries, but how to get Minecrarft sources? There are no Minecraft source in referenced libraries. I done command "./gradlew eclipse", but there is no Minecraft sources anywhere in eclipse package explorer.
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.