Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save primetoxinz/17ba9a097eccdedb9fc9228236532d40 to your computer and use it in GitHub Desktop.
Save primetoxinz/17ba9a097eccdedb9fc9228236532d40 to your computer and use it in GitHub Desktop.
genData {
environment 'target', 'fmldevdata'
main 'net.minecraftforge.userdev.LaunchTesting'
workingDirectory project.file('run')
environment 'MC_VERSION', "${config.getString('minecraft.version')}"
environment 'MCP_VERSION', "${config.getString('minecraft.mappings.mcp_version')}"
environment 'FORGE_GROUP', "${config.getString('minecraft.forge.group')}"
environment 'FORGE_VERSION', "${config.getString('minecraft.forge.version')}"
ideaModule "${rootProject.name}.${project.name}.main"
mods {
"${project.name}" {
sources sourceSets.main
}
}
args '--mod', 'forge', '--mod', mod.id, '--all', '--output', rootProject.file('src/generated/resources/')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment