When i running ‘gradlew eclipse’ in cmd of plugin project folder,get fail:
C:\work\workspace\mfbl_common_plugin>gradlew eclipse
This mapping ‘stable_39’ was designed for MC 1.12! Use at your own peril.
:deobfCompileDummyTask
:deobfProvidedDummyTask
:eclipseClasspath
Could not resolve: net.minecraftforge:forgeBin:1.12.2-14.23.5.2768
:eclipseJdt
:eclipseProject
:getVersionJson
:extractNatives SKIPPED
:extractUserdev UP-TO-DATE
:getAssetIndex UP-TO-DATE
:getAssets
Current status: 1244/1305 95%
:makeStart
:makeEclipseCleanRunClient FAILED
FAILURE: Build failed with an exception.
I read doc:Using MCP in Plugins,When I follow the documentation, i still can’t visit e.g. EntityPlayer class. i’m not sure whether it is ‘teach me use mc code in sponge’
I want add minecraft code dependency to sponge plugin, Actually, i should run 'gradlew setupDecompWorkspace ’ then ‘gradlew eclipse’ , but i develop 1.12.2forgeMod before, so i think i don’t neet run ‘gradlew setupDecompWorkspace’. when i run ‘gradlew eclipse --stacktrace’, show:
java.lang.RuntimeException: MISSING REPLACEMENT DATA FOR RUN_DIR
I have no idea what this means. However, setupDecompWorkspace only operates on the current workspace (it’s in the name). If you work on other forge mods, it should not affect those mods’ projects.
Open up a command prompt in the folder you created in step (3), then run gradlew setupDecompWorkspace . This will download a bunch of artifacts from the internet needed to decompile and build Minecraft and forge. This might take some time, as it will download stuff and then decompile Minecraft. Note that, in general, these things will only need to be downloaded and decompiled once, unless you delete the gradle artifact cache.
So I think it only runs once, and i also try run ‘setupDecompWorkspace’ then run ‘eclipse’, the problem is same.
Your build.gradle file is not configured correctly.
Specifically, you’re missing the runDir property on the minecraft section.
It should look something like this:
I have a similar problem with the :makeEclipseCleanRunClient task but get a different error. It says:
What went wrong:
Execution failed for task ‘:makeEclipseCleanRunClient’.
javax.xml.transform.TransformerException: java.io.FileNotFoundException: C:\ (Das System kann den angegebenen Pfad nicht finden)