@@ -2,7 +2,7 @@ plugins {
22 id ' idea'
33 id ' java-library'
44 id ' maven-publish'
5- id ' net.neoforged.moddev' version ' 2.0.78 '
5+ id ' net.neoforged.moddev' version ' 2.0.115 '
66}
77
88tasks. named(' wrapper' , Wrapper ). configure {
@@ -30,21 +30,18 @@ repositories {
3030 name = " Jared's maven"
3131 url = " https://maven.blamejared.com/"
3232 }
33-
3433 // Curios
3534 maven {
3635 name = " Curios"
3736 url = uri(" https://maven.theillusivec4.top/" )
3837 }
3938 // Patchouli
4039 maven { url ' https://maven.blamejared.com' }
41-
4240 // Simple Bedrock Model
4341 maven {
4442 url = " https://api.modrinth.com/maven"
4543 content { includeGroup " maven.modrinth" }
4644 }
47-
4845 // KubeJS
4946 maven {
5047 url " https://maven.latvian.dev/releases"
@@ -80,12 +77,14 @@ dependencies {
8077
8178 // Jade
8279 implementation " maven.modrinth:jade:${ project.jade_version} "
80+
8381 // Simple Bedrock Model
84- implementation jarJar(" maven.modrinth:simplebedrockmodel:1.4.0-neoforge+mc1.21.1" )
82+ implementation jarJar(" maven.modrinth:simplebedrockmodel:$sbm_version " )
83+ compileOnly(" com.maydaymemory:mae:$mae_version " )
8584
8685 // KubeJS
8786 api(" dev.latvian.mods:kubejs-neoforge:$kubejs_version " )
88- interfaceInjectionData(" dev.latvian.mods:kubejs-neoforge:$kubejs_version " ) // optional
87+ interfaceInjectionData(" dev.latvian.mods:kubejs-neoforge:$kubejs_version " )
8988}
9089
9190base {
@@ -96,24 +95,16 @@ base {
9695java. toolchain. languageVersion = JavaLanguageVersion . of(21 )
9796
9897neoForge {
99- // Specify the version of NeoForge to use.
10098 version = project. neo_version
10199
102100 parchment {
103101 mappingsVersion = project. parchment_mappings_version
104102 minecraftVersion = project. parchment_minecraft_version
105103 }
106104
107- // This line is optional. Access Transformers are automatically detected
108- accessTransformers = project. files(' src/main/resources/META-INF/accesstransformer.cfg' )
109-
110- // Default run configurations.
111- // These can be tweaked, removed, or duplicated as needed.
112105 runs {
113106 client {
114107 client()
115-
116- // Comma-separated list of namespaces to load gametests from. Empty = all namespaces.
117108 systemProperty ' neoforge.enabledGameTestNamespaces' , project. mod_id
118109 }
119110
@@ -123,45 +114,22 @@ neoForge {
123114 systemProperty ' neoforge.enabledGameTestNamespaces' , project. mod_id
124115 }
125116
126- // This run config launches GameTestServer and runs all registered gametests, then exits.
127- // By default, the server will crash when no gametests are provided.
128- // The gametest system is also enabled by default for other run configs under the /test command.
129117 gameTestServer {
130118 type = " gameTestServer"
131119 systemProperty ' neoforge.enabledGameTestNamespaces' , project. mod_id
132120 }
133121
134122 data {
135123 data()
136-
137- // example of overriding the workingDirectory set in configureEach above, uncomment if you want to use it
138- // gameDirectory = project.file('run-data')
139-
140- // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
141124 programArguments. addAll ' --mod' , project. mod_id, ' --all' , ' --output' , file(' src/generated/resources/' ). getAbsolutePath(), ' --existing' , file(' src/main/resources/' ). getAbsolutePath()
142125 }
143-
144- // applies to all the run configs above
145126 configureEach {
146- // Recommended logging data for a userdev environment
147- // The markers can be added/remove as needed separated by commas.
148- // "SCAN": For mods scan.
149- // "REGISTRIES": For firing of registry events.
150- // "REGISTRYDUMP": For getting the contents of all registries.
151127 systemProperty ' forge.logging.markers' , ' REGISTRIES'
152-
153- // Recommended logging level for the console
154- // You can set various levels here.
155- // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
156128 logLevel = org.slf4j.event.Level . DEBUG
157129 }
158130 }
159131
160132 mods {
161- // define mod <-> source bindings
162- // these are used to tell the game which sources are for which mod
163- // mostly optional in a single mod project
164- // but multi mod projects should define one per mod
165133 " ${ mod_id} " {
166134 sourceSet(sourceSets. main)
167135 }
@@ -195,7 +163,6 @@ var generateModMetadata = tasks.register("generateModMetadata", ProcessResources
195163 mod_authors : mod_authors,
196164 mod_description : mod_description,
197165 curios_version_range : curios_version_range,
198- geckolib_version_range : geckolib_version_range
199166 ]
200167 inputs. properties replaceProperties
201168 expand replaceProperties
0 commit comments