Created
June 29, 2015 11:45
-
-
Save LionZXY/46ad1e77b0f012796a7a to your computer and use it in GitHub Desktop.
My first mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
mavenCentral() | |
maven { | |
name = "forge" | |
url = "http://files.minecraftforge.net/maven" | |
} | |
maven { | |
name = "sonatype" | |
url = "https://oss.sonatype.org/content/repositories/snapshots/" | |
} | |
} | |
dependencies { | |
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' | |
} | |
} | |
apply plugin: 'forge' | |
version = "1.0" | |
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html | |
archivesBaseName = "modid" | |
minecraft { | |
version = "1.7.10-10.13.4.1481-1.7.10" | |
runDir = "eclipse" | |
} | |
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 | |
// 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, thats not the mcmod.info | |
from(sourceSets.main.resources.srcDirs) { | |
exclude 'mcmod.info' | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is Forge Mod Loader. | |
You can find the source code at all times at https://github.com/MinecraftForge/FML | |
This minecraft mod is a clean open source implementation of a mod loader for minecraft servers | |
and minecraft clients. | |
The code is authored by cpw. | |
It began by partially implementing an API defined by the client side ModLoader, authored by Risugami. | |
http://www.minecraftforum.net/topic/75440- | |
This support has been dropped as of Minecraft release 1.7, as Risugami no longer maintains ModLoader. | |
It also contains suggestions and hints and generous helpings of code from LexManos, author of MinecraftForge. | |
http://www.minecraftforge.net/ | |
Additionally, it contains an implementation of topological sort based on that | |
published at http://keithschwarz.com/interesting/code/?dir=topological-sort | |
It also contains code from the Maven project for performing versioned dependency | |
resolution. http://maven.apache.org/ | |
It also contains a partial repackaging of the javaxdelta library from http://sourceforge.net/projects/javaxdelta/ | |
with credit to it's authors. | |
Forge Mod Loader downloads components from the Minecraft Coder Pack | |
(http://mcp.ocean-labs.de/index.php/Main_Page) with kind permission from the MCP team. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ org.eclipse.team.cvs.core folder-dirty-state-cached org.eclipse.team.cvs.core resource-sync org.eclipse.team.cvs.core folder-sync org.eclipse.team.cvs remote-resource-key org.eclipse.jdt.core Minecraft org.eclipse.jdt.core.javabuilder Minecraft Minecraft 9)Kз | |
.classpath 9)Kз - . .project 9)Kз bin B 9)3ЉЧ . / common 9)2ђ % & |