This is my code that i did : buildscript {
repositories {
jcenter()
maven { url = “http://files.minecraftforge.net/maven” }
}
dependencies {
classpath ‘net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT’
}
}
apply plugin: ‘net.minecraftforge.gradle.forge’
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
version = “1.0”
group = “com.yourname.modid” // Maven – Guide to Naming Conventions
archivesBaseName = “modid”
sourceCompatibility = targetCompatibility = ‘1.8’ // Need this here so eclipse task generates correctly.
compileJava {
sourceCompatibility = targetCompatibility = ‘1.8’
}
minecraft {
version = “1.7.10-10.13.0.1187”
runDir = “run”
// the mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD snapshot are built nightly.
// stable_# stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not always work.
// simply re-run your setup task after changing the mappings to update your workspace.
mappings = "snapshot_20171003"
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
}
dependencies {
// you may put jars on which you depend on in ./libs
// or you may define them like so…
//compile “some.group:artifact:version:classifier”
//compile “some.group:artifact:version”
// real examples
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
// the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
//provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
// the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
// except that these dependencies get remapped to your current MCP mappings
//deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
//deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
// for more info...
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
// http://www.gradle.org/docs/current/userguide/dependency_management.html
}
processResources {
// this will ensure that this task is redone when the versions change.
inputs.property “version”, project.version
inputs.property “mcversion”, project.minecraft.version
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
// replace version and mcversion
expand 'version':project.version, 'mcversion':project.minecraft.version
}
// copy everything else except the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
And the gradle:
Last login: Sun Jul 11 09:32:42 on ttys000
/Users/iMac/.nvm/versions/io.js/v3.3.1/lib/node_modules/npm/bin/npm-cli.js:85
let notifier = require(‘update-notifier’)({pkg})
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:413:25)
at Object.Module._extensions…js (module.js:448:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:471:10)
at startup (node.js:117:18)
at node.js:951:3
nvm is not compatible with the npm config “prefix” option: currently set to “”
Run npm config delete prefix
or nvm use --delete-prefix iojs-v3.3.1 --silent
to unset it.
iMacs-iMac:~ iMac$ cd desktop
iMacs-iMac:desktop iMac$ cd codakid
iMacs-iMac:codakid iMac$ cd “Codakid mod creation 1”
iMacs-iMac:Codakid mod creation 1 iMac$ cd projects
iMacs-iMac:projects iMac$ cd “Emerald Tools and combat”
iMacs-iMac:Emerald Tools and combat iMac$ ./gradlew build
FAILURE: Build failed with an exception.
-
Where:
Build file ‘/Users/iMac/Desktop/Codakid/Codakid Mod Creation 1/projects/Emerald Tools And combat/build.gradle’ line: 24 -
What went wrong:
A problem occurred evaluating root project ‘Emerald Tools And combat’.
ForgeGradle 2.3.2 does not support Minecraft 1.7.10. MIN: 1.12, MAX: none
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 9.48 secs
iMacs-iMac:Emerald Tools and combat iMac$