Created
October 16, 2020 14:17
-
-
Save McJty/6ee8302064f1e047dd7ac4ed710d9a50 to your computer and use it in GitHub Desktop.
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 { | |
maven { url = 'https://files.minecraftforge.net/maven' } | |
maven { url 'https://plugins.gradle.org/m2/' } | |
jcenter() | |
mavenCentral() | |
} | |
dependencies { | |
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true | |
classpath 'gradle.plugin.com.matthewprenger:CurseGradle:1.4.0' | |
} | |
} | |
apply plugin: 'net.minecraftforge.gradle' | |
apply plugin: 'eclipse' | |
repositories { | |
maven { // JEI | |
url "http://dvs1.progwml6.com/files/maven" | |
} | |
maven { // TOP | |
url "http://maven.tterrag.com/" | |
} | |
} | |
group= "com.github.romelo333" | |
archivesBaseName = "mijnmod" | |
sourceCompatibility = 1.8 | |
targetCompatibility = 1.8 | |
minecraft { | |
mappings channel: 'snapshot', version: "${mcp_mappings}" | |
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') | |
runs { | |
client = { | |
properties 'forge.logging.markers': 'SCAN,REGISTRIES,REGISTRYDUMP' | |
properties 'forge.logging.console.level': 'debug' | |
workingDirectory project.file('run').canonicalPath | |
source sourceSets.main | |
} | |
server = { | |
properties 'forge.logging.markers': 'SCAN,REGISTRIES,REGISTRYDUMP' | |
properties 'forge.logging.console.level': 'debug' | |
workingDirectory project.file('run').canonicalPath | |
source sourceSets.main | |
} | |
data = { | |
workingDirectory project.file('run').canonicalPath | |
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' | |
property 'forge.logging.console.level', 'debug' | |
args '--mod', 'mijnmod', '--all', '--output', file('src/generated/resources/'), '--existing', sourceSets.main.resources.srcDirs[0] | |
source sourceSets.main | |
} | |
} | |
} | |
dependencies { | |
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" | |
compileOnly fg.deobf("mezz.jei:jei-${jei_version}:api") | |
runtimeOnly fg.deobf("mezz.jei:jei-${jei_version}") | |
compile fg.deobf(project.dependencies.create("mcjty.theoneprobe:TheOneProbe-${top_version}") { | |
transitive = false | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment