I'm trying to make addon for a mod I setup m workspace, set the mod deobf as a dependency ,etc. but when I try to run minecraft I get a java.lang.NoSuchFieldError. Can i get some help please? thanks in advance
[m[1;31m[14:46:10] [modloading-worker-2/ERROR] [ne.mi.fm.ja.FMLModContainer/LOADING]: Failed to register automatic subscribers. ModID: mineminenomi, class xyz.pixelatedw.mineminenomi.ModMain[m[1;31m[14:46:10] [modloading-worker-2/ERROR] [ne.mi.fm.ja.FMLModContainer/LOADING]: Failed to register automatic subscribers. ModID: mineminenomi, class xyz.pixelatedw.mineminenomi.ModMainjava.lang.NoSuchFieldError: field_175972_I at xyz.pixelatedw.mineminenomi.blocks.OpeBlock.<init>(OpeBlock.java:18) ~[?:?] {re:classloading} at xyz.pixelatedw.mineminenomi.init.ModBlocks.<clinit>(ModBlocks.java:58) ~[?:?] {re:classloading} at xyz.pixelatedw.mineminenomi.init.ModTileEntities.<clinit>(ModTileEntities.java:27) ~[?:?] {re:classloading} at java.lang.Class.forName0(Native Method) ~[?:1.8.0_231] {} at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_231] {} at net.minecraftforge.fml.AutomaticEventSubscriber.lambda$inject$3(AutomaticEventSubscriber.java:70) ~[?:?] {re:classloading} at java.util.ArrayList.forEach(Unknown Source) ~[?:1.8.0_231] {} at net.minecraftforge.fml.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:57) ~[?:?] {re:classloading} at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:141) ~[?:28.2] {re:classloading} at java.util.function.Consumer.lambda$andThen$0(Unknown Source) ~[?:1.8.0_231] {} at java.util.function.Consumer.lambda$andThen$0(Unknown Source) ~[?:1.8.0_231] {} at net.minecraftforge.fml.ModContainer.transitionState(ModContainer.java:112) ~[?:?] {re:classloading} at net.minecraftforge.fml.ModList.lambda$null$10(ModList.java:134) ~[?:?] {re:classloading} at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) [?:1.8.0_231] {} at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) [?:1.8.0_231] {} at java.util.stream.AbstractPipeline.copyInto(Unknown Source) [?:1.8.0_231] {} at java.util.stream.ForEachOps$ForEachTask.compute(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.CountedCompleter.exec(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_231] {}[m[1;31m[14:46:10] [Client thread/FATAL] [ne.mi.fm.ModLoader/LOADING]: Failed to complete lifecycle event CONSTRUCT, 1 errors found[m[1;31m[14:46:10] [Client thread/FATAL] [ne.mi.ev.EventBus/EVENTBUS]: EventBus 0 shutting down - future events will not be posted.java.lang.Exception: stacktrace at net.minecraftforge.eventbus.EventBus.shutdown(EventBus.java:278) ~[eventbus-1.0.0-service.jar:?] {} at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$5(ClientModLoader.java:117) ~[forge-1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraftforge.fml.client.ClientModLoader.begin(ClientModLoader.java:98) ~[forge-1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.init(Minecraft.java:457) ~[forge-1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.run(Minecraft.java:365) ~[forge-1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:128) ~[forge-1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_231] {} at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_231] {} at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_231] {} at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_231] {} at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) ~[forge-1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-4.1.0.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-4.1.0.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-4.1.0.jar:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-4.1.0.jar:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-4.1.0.jar:?] {} at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {}[m[36m[14:46:11] [Client thread/DEBUG] [ne.mi.fm.cl.ClientModLoader/CORE]: Generating PackInfo named mod:tutorialmod for mod file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\bin\main[m[36m[14:46:11] [Client thread/DEBUG] [ne.mi.fm.cl.ClientModLoader/CORE]: Generating PackInfo named mod:forge for mod file C:\Users\Tjray\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3\forge-1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3-recomp.jar[m[36m[14:46:11] [Client thread/DEBUG] [ne.mi.fm.cl.ClientModLoader/CORE]: Generating PackInfo named mod:mineminenomi for mod file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\lib\mine-mine-no-mi-1.14.4-0.6.2.3-deobf.jar[m[36m[14:46:11] [Client thread/DEBUG] [ne.mi.fm.ForgeI18n/CORE]: Loading I18N data entries: 0[m[32m[14:46:22] [Client thread/INFO] [mojang/NarratorWindows]: Narrator library for x64 successfully loaded[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigTracker/CONFIG]: Loading configs type CLIENT[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigTracker/CONFIG]: Loading config file type CLIENT at tutorialmod-client.toml for tutorialmod[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Built TOML config for C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\tutorialmod-client.toml[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\tutorialmod-client.toml[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Watching TOML config file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\tutorialmod-client.toml for changes[m[36m[14:46:28] [Thread-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Config file tutorialmod-client.toml changed, sending notifies[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigTracker/CONFIG]: Loading config file type CLIENT at forge-client.toml for forge[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Built TOML config for C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\forge-client.toml[m[36m[14:46:28] [Thread-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Config file tutorialmod-client.toml changed, sending notifies[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\forge-client.toml[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Watching TOML config file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\forge-client.toml for changes[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.co.ForgeConfig/FORGEMOD]: Loaded forge config file forge-client.toml[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigTracker/CONFIG]: Loading config file type CLIENT at mineminenomi-client.toml for mineminenomi[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Built TOML config for C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\mineminenomi-client.toml[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\mineminenomi-client.toml[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Watching TOML config file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\mineminenomi-client.toml for changes[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigTracker/CONFIG]: Loading configs type COMMON[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigTracker/CONFIG]: Loading config file type COMMON at mineminenomi-common.toml for mineminenomi[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Built TOML config for C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\mineminenomi-common.toml[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\mineminenomi-common.toml[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Watching TOML config file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\mineminenomi-common.toml for changes[m[36m[14:46:28] [Thread-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Config file mineminenomi-common.toml changed, sending notifies[m[1;31m[14:46:28] [Server-Worker-1/ERROR] [ne.mi.fm.ModLoader/LOADING]: Skipping lifecycle event SETUP, 1 errors found.[m[1;31m[14:46:28] [Server-Worker-1/FATAL] [ne.mi.fm.ModLoader/LOADING]: Failed to complete lifecycle event SETUP, 1 errors found[m[1;31m[14:46:28] [Server-Worker-1/FATAL] [ne.mi.ev.EventBus/EVENTBUS]: EventBus 0 shutting down - future events will not be posted.java.lang.
Exception: stacktrace at net.minecraftforge.eventbus.EventBus.shutdown(EventBus.java:278) ~[eventbus-1.0.0-service.jar:?] {} at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$5(ClientModLoader.java:117) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraftforge.fml.client.ClientModLoader.startModLoading(ClientModLoader.java:125) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraftforge.fml.client.ClientModLoader.lambda$onreload$3(ClientModLoader.java:107) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$5(ClientModLoader.java:115) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.CompletableFuture$AsyncRun.exec(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_231] {}[m[36m[14:46:28] [Thread-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Config file mineminenomi-common.toml changed, sending notifies[m[36m[14:46:28] [Thread-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Config file mineminenomi-common.toml changed, sending notifies[m[1;31m[14:46:58] [Server-Worker-1/ERROR] [ne.mi.fm.ModLoader/LOADING]: Skipping lifecycle event ENQUEUE_IMC, 1 errors found.[m[1;31m[14:46:58] [Server-Worker-1/FATAL] [ne.mi.fm.ModLoader/LOADING]: Failed to complete lifecycle event ENQUEUE_IMC, 1 errors found[m[1;31m[14:46:58] [Server-Worker-1/FATAL] [ne.mi.ev.EventBus/EVENTBUS]: EventBus 0 shutting down - future events will not be posted.java.lang.Exception: stacktrace at net.minecraftforge.eventbus.EventBus.shutdown(EventBus.java:278) ~[eventbus-1.0.0-service.jar:?] {} at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$5(ClientModLoader.java:117) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraftforge.fml.client.ClientModLoader.finishModLoading(ClientModLoader.java:139) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraftforge.fml.client.ClientModLoader.lambda$onreload$4(ClientModLoader.java:109) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at java.util.concurrent.CompletableFuture.uniRun(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.CompletableFuture$UniRun.tryFire(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_231] {}[m[32m[14:47:01] [Client thread/INFO] [minecraft/SoundSystem]: OpenAL initialized.[m[32m[14:47:01] [Client thread/INFO] [minecraft/SoundEngine]: Sound engine started[m[32m[14:47:02] [Client thread/INFO] [minecraft/AtlasTexture]: Created: 512x512 textures-atlas[m[32m[14:47:06] [Client thread/INFO] [minecraft/AtlasTexture]: Created: 256x256 textures/particle-atlas[m[32m[14:47:06] [Client thread/INFO] [minecraft/AtlasTexture]: Created: 256x256 textures/painting-atlas[m[32m[14:47:06] [Client thread/INFO] [minecraft/AtlasTexture]: Created: 128x128 textures/mob_effect-atlas[m
What forge version are you using? The mineminenomi mod requires minimum forge version 1.14.4-28.2.17, if you are using an earlier forge version, that might be what is causing the error.
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
minecraft {
// The mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD Snapshot are built nightly.
// stable_# Stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not always work.
// Simply re-run your setup task after changing the mappings to update your workspace.
mappings channel: 'snapshot', version: '20190719-1.14.3'
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
dependencies {
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
minecraft 'net.minecraftforge:forge:1.14.4-28.2.23'
// You may put jars on which you depend on in ./libs or you may define them like so..
// compile "some.group:artifact:version:classifier"
// compile "some.group:artifact:version"
// Real examples
// compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
// compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
// The 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
// provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
// These dependencies get remapped to your current MCP mappings
// deobf 'com.mod-buildcraft:buildcraft:6.0.8:dev'
// Example for how to get properties into the manifest for reading by the runtime..
jar {
manifest {
attributes([
"Specification-Title": "examplemod",
"Specification-Vendor": "examplemodsareus",
"Specification-Version": "1", // We are version 1 of ourselves
"Implementation-Title": project.name,
"Implementation-Version": "${version}",
"Implementation-Vendor" :"examplemodsareus",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
// Example configuration to allow publishing using the maven-publish task
// we define a custom artifact that is sourced from the reobfJar output task
// and then declare that to be published
// Note you'll need to add a repository here
def reobfFile = file("$buildDir/reobfJar/output.jar")
def reobfArtifact = artifacts.add('default', reobfFile) {
type 'jar'
builtBy 'reobfJar'
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact reobfArtifact
}
}
repositories {
maven {
url "file:///${project.projectDir}/mcmodsrepo"
}
}
}
Am I supposed to register the dependency here, if so how?
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
version = '1.0'
group = 'com.yourname.modid' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'modid'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
minecraft {
// The mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD Snapshot are built nightly.
// stable_# Stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not always work.
// Simply re-run your setup task after changing the mappings to update your workspace.
mappings channel: 'snapshot', version: '20190719-1.14.3'
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
// Default run configurations.
// These can be tweaked, removed, or duplicated as needed.
runs {
client {
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 {
examplemod {
source sourceSets.main
}
}
}
server {
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 {
examplemod {
source sourceSets.main
}
}
}
data {
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'
args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/')
mods {
examplemod {
source sourceSets.main
}
}
}
}
}
repositories {
flatDir {
dirs "libs"
}
}
dependencies {
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
minecraft 'net.minecraftforge:forge:1.14.4-28.2.23'
// You may put jars on which you depend on in ./libs or you may define them like so..
// compile "some.group:artifact:version:classifier"
// compile "some.group:artifact:version"
compileOnly fg.deobf(name: 'mine-mine-no-mi-1.14.4-0.6.2.3-deobf')
runtimeOnly fg.deobf(name: 'mine-mine-no-mi-1.14.4-0.6.2.3-deobf')
// Real examples
// compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
// compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
// The 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
// provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
// These dependencies get remapped to your current MCP mappings
// deobf 'com.mod-buildcraft:buildcraft:6.0.8:dev'
// For more info...
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
// http://www.gradle.org/docs/current/userguide/dependency_management.html
}
// Example for how to get properties into the manifest for reading by the runtime..
jar {
manifest {
attributes([
"Specification-Title": "examplemod",
"Specification-Vendor": "examplemodsareus",
"Specification-Version": "1", // We are version 1 of ourselves
"Implementation-Title": project.name,
"Implementation-Version": "${version}",
"Implementation-Vendor" :"examplemodsareus",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'deobf'
}
build.dependsOn deobfJar
// Example configuration to allow publishing using the maven-publish task
// we define a custom artifact that is sourced from the reobfJar output task
// and then declare that to be published
// Note you'll need to add a repository here
def reobfFile = file("$buildDir/reobfJar/output.jar")
def reobfArtifact = artifacts.add('default', reobfFile) {
type 'jar'
builtBy 'reobfJar'
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact reobfArtifact
}
}
repositories {
maven {
url "file:///${project.projectDir}/mcmodsrepo"
}
}
}
Honestly, your best bet might be to contact the developer(s) of the Mine Mine no Mi mod and ask what the best approach is to creating an addon for the mod. I feel like we are just walking in circles here, not really being able to solve the problem.
Honestly, your best bet might be to contact the developer(s) of the Mine Mine no Mi mod and ask what the best approach is to creating an addon for the mod. I feel like we are just walking in circles here, not really being able to solve the problem.
I'm trying to make addon for a mod I setup m workspace, set the mod deobf as a dependency ,etc. but when I try to run minecraft I get a java.lang.NoSuchFieldError. Can i get some help please? thanks in advance
[m[1;31m[14:46:10] [modloading-worker-2/ERROR] [ne.mi.fm.ja.FMLModContainer/LOADING]: Failed to register automatic subscribers. ModID: mineminenomi, class xyz.pixelatedw.mineminenomi.ModMain[m[1;31m[14:46:10] [modloading-worker-2/ERROR] [ne.mi.fm.ja.FMLModContainer/LOADING]: Failed to register automatic subscribers. ModID: mineminenomi, class xyz.pixelatedw.mineminenomi.ModMainjava.lang.NoSuchFieldError: field_175972_I at xyz.pixelatedw.mineminenomi.blocks.OpeBlock.<init>(OpeBlock.java:18) ~[?:?] {re:classloading} at xyz.pixelatedw.mineminenomi.init.ModBlocks.<clinit>(ModBlocks.java:58) ~[?:?] {re:classloading} at xyz.pixelatedw.mineminenomi.init.ModTileEntities.<clinit>(ModTileEntities.java:27) ~[?:?] {re:classloading} at java.lang.Class.forName0(Native Method) ~[?:1.8.0_231] {} at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_231] {} at net.minecraftforge.fml.AutomaticEventSubscriber.lambda$inject$3(AutomaticEventSubscriber.java:70) ~[?:?] {re:classloading} at java.util.ArrayList.forEach(Unknown Source) ~[?:1.8.0_231] {} at net.minecraftforge.fml.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:57) ~[?:?] {re:classloading} at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:141) ~[?:28.2] {re:classloading} at java.util.function.Consumer.lambda$andThen$0(Unknown Source) ~[?:1.8.0_231] {} at java.util.function.Consumer.lambda$andThen$0(Unknown Source) ~[?:1.8.0_231] {} at net.minecraftforge.fml.ModContainer.transitionState(ModContainer.java:112) ~[?:?] {re:classloading} at net.minecraftforge.fml.ModList.lambda$null$10(ModList.java:134) ~[?:?] {re:classloading} at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) [?:1.8.0_231] {} at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) [?:1.8.0_231] {} at java.util.stream.AbstractPipeline.copyInto(Unknown Source) [?:1.8.0_231] {} at java.util.stream.ForEachOps$ForEachTask.compute(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.CountedCompleter.exec(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_231] {}[m[1;31m[14:46:10] [Client thread/FATAL] [ne.mi.fm.ModLoader/LOADING]: Failed to complete lifecycle event CONSTRUCT, 1 errors found[m[1;31m[14:46:10] [Client thread/FATAL] [ne.mi.ev.EventBus/EVENTBUS]: EventBus 0 shutting down - future events will not be posted.java.lang.Exception: stacktrace at net.minecraftforge.eventbus.EventBus.shutdown(EventBus.java:278) ~[eventbus-1.0.0-service.jar:?] {} at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$5(ClientModLoader.java:117) ~[forge-1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraftforge.fml.client.ClientModLoader.begin(ClientModLoader.java:98) ~[forge-1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.init(Minecraft.java:457) ~[forge-1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.run(Minecraft.java:365) ~[forge-1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:128) ~[forge-1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_231] {} at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_231] {} at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_231] {} at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_231] {} at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) ~[forge-1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-4.1.0.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-4.1.0.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-4.1.0.jar:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-4.1.0.jar:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-4.1.0.jar:?] {} at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {}[m[36m[14:46:11] [Client thread/DEBUG] [ne.mi.fm.cl.ClientModLoader/CORE]: Generating PackInfo named mod:tutorialmod for mod file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\bin\main[m[36m[14:46:11] [Client thread/DEBUG] [ne.mi.fm.cl.ClientModLoader/CORE]: Generating PackInfo named mod:forge for mod file C:\Users\Tjray\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3\forge-1.14.4-28.2.23_mapped_snapshot_20190719-1.14.3-recomp.jar[m[36m[14:46:11] [Client thread/DEBUG] [ne.mi.fm.cl.ClientModLoader/CORE]: Generating PackInfo named mod:mineminenomi for mod file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\lib\mine-mine-no-mi-1.14.4-0.6.2.3-deobf.jar[m[36m[14:46:11] [Client thread/DEBUG] [ne.mi.fm.ForgeI18n/CORE]: Loading I18N data entries: 0[m[32m[14:46:22] [Client thread/INFO] [mojang/NarratorWindows]: Narrator library for x64 successfully loaded[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigTracker/CONFIG]: Loading configs type CLIENT[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigTracker/CONFIG]: Loading config file type CLIENT at tutorialmod-client.toml for tutorialmod[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Built TOML config for C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\tutorialmod-client.toml[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\tutorialmod-client.toml[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Watching TOML config file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\tutorialmod-client.toml for changes[m[36m[14:46:28] [Thread-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Config file tutorialmod-client.toml changed, sending notifies[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigTracker/CONFIG]: Loading config file type CLIENT at forge-client.toml for forge[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Built TOML config for C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\forge-client.toml[m[36m[14:46:28] [Thread-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Config file tutorialmod-client.toml changed, sending notifies[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\forge-client.toml[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Watching TOML config file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\forge-client.toml for changes[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.co.ForgeConfig/FORGEMOD]: Loaded forge config file forge-client.toml[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigTracker/CONFIG]: Loading config file type CLIENT at mineminenomi-client.toml for mineminenomi[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Built TOML config for C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\mineminenomi-client.toml[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\mineminenomi-client.toml[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Watching TOML config file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\mineminenomi-client.toml for changes[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigTracker/CONFIG]: Loading configs type COMMON[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigTracker/CONFIG]: Loading config file type COMMON at mineminenomi-common.toml for mineminenomi[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Built TOML config for C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\mineminenomi-common.toml[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Loaded TOML config file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\mineminenomi-common.toml[m[36m[14:46:28] [Server-Worker-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Watching TOML config file C:\Users\Tjray\Desktop\Coding\MiniMine\OnePiece\run\config\mineminenomi-common.toml for changes[m[36m[14:46:28] [Thread-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Config file mineminenomi-common.toml changed, sending notifies[m[1;31m[14:46:28] [Server-Worker-1/ERROR] [ne.mi.fm.ModLoader/LOADING]: Skipping lifecycle event SETUP, 1 errors found.[m[1;31m[14:46:28] [Server-Worker-1/FATAL] [ne.mi.fm.ModLoader/LOADING]: Failed to complete lifecycle event SETUP, 1 errors found[m[1;31m[14:46:28] [Server-Worker-1/FATAL] [ne.mi.ev.EventBus/EVENTBUS]: EventBus 0 shutting down - future events will not be posted.java.lang.
Exception: stacktrace at net.minecraftforge.eventbus.EventBus.shutdown(EventBus.java:278) ~[eventbus-1.0.0-service.jar:?] {} at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$5(ClientModLoader.java:117) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraftforge.fml.client.ClientModLoader.startModLoading(ClientModLoader.java:125) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraftforge.fml.client.ClientModLoader.lambda$onreload$3(ClientModLoader.java:107) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$5(ClientModLoader.java:115) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.CompletableFuture$AsyncRun.exec(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_231] {}[m[36m[14:46:28] [Thread-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Config file mineminenomi-common.toml changed, sending notifies[m[36m[14:46:28] [Thread-1/DEBUG] [ne.mi.fm.co.ConfigFileTypeHandler/CONFIG]: Config file mineminenomi-common.toml changed, sending notifies[m[1;31m[14:46:58] [Server-Worker-1/ERROR] [ne.mi.fm.ModLoader/LOADING]: Skipping lifecycle event ENQUEUE_IMC, 1 errors found.[m[1;31m[14:46:58] [Server-Worker-1/FATAL] [ne.mi.fm.ModLoader/LOADING]: Failed to complete lifecycle event ENQUEUE_IMC, 1 errors found[m[1;31m[14:46:58] [Server-Worker-1/FATAL] [ne.mi.ev.EventBus/EVENTBUS]: EventBus 0 shutting down - future events will not be posted.java.lang.Exception: stacktrace at net.minecraftforge.eventbus.EventBus.shutdown(EventBus.java:278) ~[eventbus-1.0.0-service.jar:?] {} at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$5(ClientModLoader.java:117) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraftforge.fml.client.ClientModLoader.finishModLoading(ClientModLoader.java:139) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraftforge.fml.client.ClientModLoader.lambda$onreload$4(ClientModLoader.java:109) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at java.util.concurrent.CompletableFuture.uniRun(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.CompletableFuture$UniRun.tryFire(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_231] {} at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_231] {}[m[32m[14:47:01] [Client thread/INFO] [minecraft/SoundSystem]: OpenAL initialized.[m[32m[14:47:01] [Client thread/INFO] [minecraft/SoundEngine]: Sound engine started[m[32m[14:47:02] [Client thread/INFO] [minecraft/AtlasTexture]: Created: 512x512 textures-atlas[m[32m[14:47:06] [Client thread/INFO] [minecraft/AtlasTexture]: Created: 256x256 textures/particle-atlas[m[32m[14:47:06] [Client thread/INFO] [minecraft/AtlasTexture]: Created: 256x256 textures/painting-atlas[m[32m[14:47:06] [Client thread/INFO] [minecraft/AtlasTexture]: Created: 128x128 textures/mob_effect-atlas[m
Would you mind posting the source code of your OpeBlock class?
Its code from the mod that i'm making the addon for so I can't edit it
but here you go
What forge version are you using? The mineminenomi mod requires minimum forge version 1.14.4-28.2.17, if you are using an earlier forge version, that might be what is causing the error.
I’m using the latest version 1.14.4-28.2.23
Hmm, alright. Do you mind sharing your build.gradle? Or even better, your whole project as a git repo?
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
version = '1.0'
group = 'com.yourname.modid' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'modid'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
minecraft {
// The mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD Snapshot are built nightly.
// stable_# Stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not always work.
// Simply re-run your setup task after changing the mappings to update your workspace.
mappings channel: 'snapshot', version: '20190719-1.14.3'
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
// Default run configurations.
// These can be tweaked, removed, or duplicated as needed.
runs {
client {
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 {
examplemod {
source sourceSets.main
}
}
}
server {
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 {
examplemod {
source sourceSets.main
}
}
}
data {
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'
args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/')
mods {
examplemod {
source sourceSets.main
}
}
}
}
}
dependencies {
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
minecraft 'net.minecraftforge:forge:1.14.4-28.2.23'
// You may put jars on which you depend on in ./libs or you may define them like so..
// compile "some.group:artifact:version:classifier"
// compile "some.group:artifact:version"
// Real examples
// compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
// compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
// The 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
// provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
// These dependencies get remapped to your current MCP mappings
// deobf 'com.mod-buildcraft:buildcraft:6.0.8:dev'
// For more info...
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
// http://www.gradle.org/docs/current/userguide/dependency_management.html
}
// Example for how to get properties into the manifest for reading by the runtime..
jar {
manifest {
attributes([
"Specification-Title": "examplemod",
"Specification-Vendor": "examplemodsareus",
"Specification-Version": "1", // We are version 1 of ourselves
"Implementation-Title": project.name,
"Implementation-Version": "${version}",
"Implementation-Vendor" :"examplemodsareus",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
// Example configuration to allow publishing using the maven-publish task
// we define a custom artifact that is sourced from the reobfJar output task
// and then declare that to be published
// Note you'll need to add a repository here
def reobfFile = file("$buildDir/reobfJar/output.jar")
def reobfArtifact = artifacts.add('default', reobfFile) {
type 'jar'
builtBy 'reobfJar'
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact reobfArtifact
}
}
repositories {
maven {
url "file:///${project.projectDir}/mcmodsrepo"
}
}
}
Am I supposed to register the dependency here, if so how?
Yes, you have to add the mod as a dependency. This process should work:
1. Download the source code for the Mine Mine no Mi mod.
2. Add the following code to the build.gradle of the Mine Mine no Mi mod:
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'deobf'
}
build.dependsOn deobfJar
3. run ./gradlew genEclipseRuns and ./gradlew build on the Mine Mine no Mi mod.
4. Copy the jar file from build/libs that ends with -deobf.jar
5. Put this jar in a new folder called libs in the top folder of your mod
6. Add this to the build.gradle of your mod:
repositories {
flatDir {
dirs "libs"
}
}
and in the dependencies block in your build.gradle, add the following lines (but replace the string name):
compileOnly fg.deobf(name: 'NAME OF THE YAR YOU COPIED')
runtimeOnly fg.deobf(name: 'NAME OF THE YAR YOU COPIED')
7. Run ./gradlew genEclipseRuns on your mod and import it into eclipse. Hopefully it will now work.
I'm still getting an error
Honestly, your best bet might be to contact the developer(s) of the Mine Mine no Mi mod and ask what the best approach is to creating an addon for the mod. I feel like we are just walking in circles here, not really being able to solve the problem.
Do you think it could be a java issue bc im not using the the latest version
I dint quote you for my previous message
bump