1
1
buildscript {
2
2
repositories {
3
- maven { url = 'https://files .minecraftforge.net/maven ' }
3
+ maven { url = 'https://maven .minecraftforge.net' }
4
4
#if (${MIXINS})
5
5
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
6
6
#end
7
- jcenter()
8
7
mavenCentral()
9
8
}
10
9
dependencies {
11
- classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3 .+', changing: true
10
+ classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '4.1 .+', changing: true
12
11
#if (${MIXINS})
13
12
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
14
13
#end
@@ -24,12 +23,18 @@ group = '${GROUP_ID}'
24
23
version = '${MOD_VERSION}'
25
24
archivesBaseName = '${ARTIFACT_ID}'
26
25
27
- sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
26
+ java.toolchain.languageVersion = JavaLanguageVersion.of(8) // Mojang ships Java 8 to end users, so your mod should target Java 8.
28
27
29
28
minecraft {
30
29
// The mappings can be changed at any time, and must be in the following format.
31
- // snapshot_YYYYMMDD Snapshot are built nightly.
32
- // stable_# Stables are built at the discretion of the MCP team.
30
+ // Channel: Version:
31
+ // snapshot YYYYMMDD Snapshot are built nightly.
32
+ // stable # Stables are built at the discretion of the MCP team.
33
+ // official MCVersion Official field/method names from Mojang mapping files
34
+ //
35
+ // You must be aware of the Mojang license when using the 'official' mappings.
36
+ // See more information here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md
37
+ //
33
38
// Use non-default mappings at your own risk. they may not always work.
34
39
// Simply re-run your setup task after changing the mappings to update your workspace.
35
40
mappings channel: '${MCP_CHANNEL}', version: '${MCP_VERSION}-${MCP_MC_VERSION}'
@@ -44,9 +49,15 @@ minecraft {
44
49
workingDirectory project.file('run')
45
50
46
51
// Recommended logging data for a userdev environment
47
- property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
52
+ // The markers can be changed as needed.
53
+ // "SCAN": For mods scan.
54
+ // "REGISTRIES": For firing of registry events.
55
+ // "REGISTRYDUMP": For getting the contents of all registries.
56
+ property 'forge.logging.markers', 'REGISTRIES'
48
57
49
58
// Recommended logging level for the console
59
+ // You can set various levels here.
60
+ // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
50
61
property 'forge.logging.console.level', 'debug'
51
62
#if (${MIXINS})
52
63
@@ -64,9 +75,15 @@ minecraft {
64
75
workingDirectory project.file('run')
65
76
66
77
// Recommended logging data for a userdev environment
67
- property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
78
+ // The markers can be changed as needed.
79
+ // "SCAN": For mods scan.
80
+ // "REGISTRIES": For firing of registry events.
81
+ // "REGISTRYDUMP": For getting the contents of all registries.
82
+ property 'forge.logging.markers', 'REGISTRIES'
68
83
69
84
// Recommended logging level for the console
85
+ // You can set various levels here.
86
+ // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
70
87
property 'forge.logging.console.level', 'debug'
71
88
#if (${MIXINS})
72
89
@@ -85,9 +102,15 @@ minecraft {
85
102
workingDirectory project.file('run')
86
103
87
104
// Recommended logging data for a userdev environment
88
- property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
105
+ // The markers can be changed as needed.
106
+ // "SCAN": For mods scan.
107
+ // "REGISTRIES": For firing of registry events.
108
+ // "REGISTRYDUMP": For getting the contents of all registries.
109
+ property 'forge.logging.markers', 'REGISTRIES'
89
110
90
111
// Recommended logging level for the console
112
+ // You can set various levels here.
113
+ // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
91
114
property 'forge.logging.console.level', 'debug'
92
115
93
116
// Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
0 commit comments