0% found this document useful (0 votes)
27 views2 pages

S

Uploaded by

fariskabha4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views2 pages

S

Uploaded by

fariskabha4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

buildscript {

repositories {
mavenCentral() // General Maven repository
maven {
name = "Forge"
url = "https://files.minecraftforge.net/maven" // Forge Maven
repository
}
maven {
name = "Anatawa12"
url = "https://maven.anatawa12.com/" // Anatawa12's repository for
ForgeGradle
}
}
dependencies {
// Use a stable version of Anatawa12's ForgeGradle
classpath("com.anatawa12.forge:ForgeGradle:2.3-1.0.+") {
changing = true // Allow updates to snapshot versions
}
}
}

apply plugin: 'com.anatawa12.forge' // Apply Anatawa12's ForgeGradle plugin


apply plugin: 'java' // Apply the Java plugin for the project

group = 'com.yourname.hackclient' // Replace with your actual group/package name


version = '1.0-SNAPSHOT' // Replace with your mod version
sourceCompatibility = 1.8 // Ensure compatibility with Java 8
targetCompatibility = 1.8

minecraft {
version = "1.8.8-11.14.4.1577" // Forge version for Minecraft 1.8.8
runDir = "run" // Directory where Minecraft will run
mappings = "stable_18" // Stable mappings for 1.8.8
}

repositories {
mavenCentral() // General Maven repository for dependencies
maven {
name = "Forge"
url = "https://files.minecraftforge.net/maven" // Forge Maven repository
}
}

dependencies {
// Include Forge as a dependency
compile 'net.minecraftforge:forge:1.8.8-11.14.4.1577' // Include Forge as a
compile-time dependency
// Add any additional dependencies here, e.g.:
// implementation 'com.google.guava:guava:21.0'
}

task runClient(type: JavaExec) {


main = 'com.yourname.hackclient.Main' // Replace with your actual main class
fully qualified name
classpath = sourceSets.main.runtimeClasspath
args = [] // Add additional arguments if necessary
}
// Optional: Configure the 'jar' task to include your mod's metadata (e.g., modid,
name, description)
jar {
manifest {
attributes(
'Mod-Id': 'yourmodid', // Replace with your mod ID
'Name': 'Your Mod Name', // Replace with your mod name
'Description': 'A brief description of your mod.', // Replace with
your mod description
'Version': version,
'Minecraft-Version': '1.8.8',
'Forge-Version': '11.14.4.1577'
)
}
}

You might also like