-
Notifications
You must be signed in to change notification settings - Fork 0
/
mcreator.gradle
91 lines (83 loc) · 2.66 KB
/
mcreator.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
def compileModsDir = 'compile-mods-1.19.2'
task addnewfoldersmods(type: DefaultTask){
ant.mkdir(dir: 'compile-mods-1.19.2/');
}
repositories {
flatDir {
name "compile-mods"
dir file(compileModsDir)
}
}
dependencies {
for (compileModJar in fileTree(dir: compileModsDir, include: '*.jar')) {
def basename = compileModJar.name.substring(0, compileModJar.name.length() - ".jar".length())
def versionSep = basename.lastIndexOf('-')
assert versionSep != -1
def artifactId = basename.substring(0, versionSep)
def version = basename.substring(versionSep + 1)
implementation fg.deobf("compile-mods:$artifactId:$version")}
}
minecraft {
mappings channel: 'official', version: '1.19.2'
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
runs {
client {
workingDirectory project.file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${buildDir}/build/createSrgToMcp/output.srg"
mods {
examplemod {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run')
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${buildDir}/build/createSrgToMcp/output.srg"
mods {
examplemod {
source sourceSets.main
}
}
}
}
}
repositories {
maven {
url = "https://maven.theillusivec4.top/"
}
}
dependencies {
runtimeOnly fg.deobf("top.theillusivec4.curios:curios-forge:1.19.2-5.1.1.0")
compileOnly fg.deobf("top.theillusivec4.curios:curios-forge:1.19.2-5.1.1.0:api")
}
repositories {
maven {
url = 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/'
}
}
dependencies {
implementation fg.deobf('software.bernie.geckolib:geckolib-forge-1.19:3.1.40')
}
repositories {
maven {
// location of the maven that hosts JEI files
name = "Progwml6 maven"
url = "https://dvs1.progwml6.com/files/maven/"
}
maven {
// location of a maven mirror for JEI files, as a fallback
name = "ModMaven"
url = "https://modmaven.dev"
}
}
dependencies {
compileOnly fg.deobf("mezz.jei:jei-1.19.2-common-api:11.4.0.286")
compileOnly fg.deobf("mezz.jei:jei-1.19.2-forge-api:11.4.0.286")
runtimeOnly fg.deobf("mezz.jei:jei-1.19.2-forge:11.4.0.286")
}