Everything was done

This commit is contained in:
Andrew 2023-03-26 16:20:21 +07:00
commit 89a89a6e21
108 changed files with 4570 additions and 0 deletions

130
build.gradle Normal file
View file

@ -0,0 +1,130 @@
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
}
}
repositories {
maven { url 'https://maven.blamejared.com' }
maven { url 'https://maven.theillusivec4.top' }
maven { url 'https://maven.hellfiredev.net' }
}
apply plugin: 'net.minecraftforge.gradle'
group = 'xyz.nuark.mods'
version = '1.16.5-1.1.0'
archivesBaseName = 'ElectroMana'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
minecraft {
mappings channel: 'snapshot', version: '20210309-1.16.5'
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
runs {
client {
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
workingDirectory project.file('run')
// Recommended logging data for a userdev environment
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
// Recommended logging level for the console
property 'forge.logging.console.level', 'debug'
mods {
electromana {
source sourceSets.main
}
}
}
server {
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
workingDirectory project.file('run')
// Recommended logging data for a userdev environment
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
// Recommended logging level for the console
property 'forge.logging.console.level', 'debug'
mods {
electromana {
source sourceSets.main
}
}
}
data {
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
workingDirectory project.file('run')
// Recommended logging data for a userdev environment
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
// Recommended logging level for the console
property 'forge.logging.console.level', 'debug'
// Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
args '--mod', 'electromana', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
mods {
electromana {
source sourceSets.main
}
}
}
}
}
// Include resources generated by data generators.
sourceSets.main.resources { srcDir 'src/generated/resources' }
dependencies {
minecraft 'net.minecraftforge:forge:1.16.5-36.1.16'
def curios_version = "1.16.5-4.0.5.1"
def patchouli_version = "1.16.4-51"
def botania_version = "1.16.5-416"
compileOnly "top.theillusivec4.curios:curios-forge:$curios_version:api"
runtimeOnly fg.deobf("top.theillusivec4.curios:curios-forge:$curios_version")
compileOnly fg.deobf("vazkii.patchouli:Patchouli:$patchouli_version:api")
runtimeOnly fg.deobf("vazkii.patchouli:Patchouli:$patchouli_version")
compileOnly fg.deobf("vazkii.botania:Botania:$botania_version:api")
runtimeOnly fg.deobf("vazkii.botania:Botania:$botania_version")
}
// Example for how to get properties into the manifest for reading by the runtime..
jar {
manifest {
attributes([
"Specification-Title" : "electromana",
"Specification-Vendor" : "nuark",
"Specification-Version" : "1", // We are version 1 of ourselves
"Implementation-Title" : project.name,
"Implementation-Version" : project.version,
"Implementation-Vendor" : "nuark",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
jar.finalizedBy('reobfJar')