Hello i seem to be having an error with my mod i have not added any content but have been trying to add mmnm as a dependancy through intellij using the project structure tab.After i add it i get the following error.

[main/FATAL] [mixin/]: Mixin apply failed mine-mine-no-mi.mixins.json:IServerWorldMixin -> net.minecraft.world.server.ServerWorld: org.spongepowered.asm.mixin.gen.throwables.InvalidAccessorException No candidates were found matching field241103_E:Lnet/minecraft/world/storage/IServerWorldInfo; in net/minecraft/world/server/ServerWorld for mine-mine-no-mi.mixins.json:IServerWorldMixin->@Accessor[FIELDGETTER]::getServerLevelData()Lnet/minecraft/world/storage/IServerWorldInfo; [INJECT Applicator Phase -> mine-mine-no-mi.mixins.json:IServerWorldMixin -> Apply Accessors -> -> Locate -> mine-mine-no-mi.mixins.json:IServerWorldMixin->@Accessor[FIELD_GETTER]::getServerLevelData()Lnet/minecraft/world/storage/IServerWorldInfo;]
org.spongepowered.asm.mixin.gen.throwables.InvalidAccessorException: No candidates were found matching field_241103_E:Lnet/minecraft/world/storage/IServerWorldInfo; in net/minecraft/world/server/ServerWorld for mine-mine-no-mi.mixins.json:IServerWorldMixin->@Accessor[FIELD_GETTER]::getServerLevelData()Lnet/minecraft/world/storage/IServerWorldInfo; [INJECT Applicator Phase -> mine-mine-no-mi.mixins.json:IServerWorldMixin -> Apply Accessors -> -> Locate -> mine-mine-no-mi.mixins.json:IServerWorldMixin->@Accessor[FIELD_GETTER]::getServerLevelData()Lnet/minecraft/world/storage/IServerWorldInfo;]

If you need any more info please say so and i would really love it if i get a response, i have been fighting this for 2 months now with no progress.

Addons are not yet properly supported also no idea whats happening there, Im guessing you don't know to setup a workspace for a mod where you don't have the source available and just tried linking the regular jar in the gradle build ? Setting up a workspace does work and was done already that much I know...if you did the above try looking into cursemaven and how to use that for using closed source mods in a workspace.

    wynd i used curse maven as well and get the same error i have tried a lot if you have no answear it ok ill continue to try myself. Thank you for replying tho. If you have any example or maybe some docs somewhere it would help a lot, i havent seen any dev docs in the xyz.pixelatedw mineminenomi page yet but i see that you are working on it.

    Here is what i have done in the build.gradle file (I am using clean project to find what could be the issue ignore examplemod...)

    buildscript {
    repositories {
    maven { url = 'https://maven.minecraftforge.net' }
    mavenCentral()
    }
    dependencies {
    classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
    }
    }

    apply plugin: 'net.minecraftforge.gradle'

    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'

    java.toolchain.languageVersion = JavaLanguageVersion.of(8) // Mojang ships Java 8 to end users, so your mod should target Java 8.

    println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
    minecraft {

    mappings channel: 'official', version: '1.16.5'
    
    
    runs {
        client {
            workingDirectory project.file('run')
    
            property 'forge.logging.markers', 'REGISTRIES'
    
    
            property 'forge.logging.console.level', 'debug'
    
            mods {
                examplemod {
                    source sourceSets.main
                }
            }
        }
    
        server {
            workingDirectory project.file('run')
    
            property 'forge.logging.markers', 'REGISTRIES'
    
            property 'forge.logging.console.level', 'debug'
    
            mods {
                examplemod {
                    source sourceSets.main
                }
            }
        }
    
        data {
            workingDirectory project.file('run')
    
    
            property 'forge.logging.markers', 'REGISTRIES'
    
    
            property 'forge.logging.console.level', 'debug'
    
            args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
    
            mods {
                examplemod {
                    source sourceSets.main
                }
            }
        }
    }

    }

    // Include resources generated by data generators.
    sourceSets.main.resources { srcDir 'src/generated/resources' }

    repositories {
    maven {
    url "https://cursemaven.com"
    content {
    includeGroup "curse.maven"
    }
    }
    }
    dependencies {

    implementation fg.deobf("curse.maven:mineminenomi-78726:5589898")
    
    minecraft 'net.minecraftforge:forge:1.16.5-36.2.40'

    }

    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")
    ])
    }
    }

    jar.finalizedBy('reobfJar')

    publishing {
    publications {
    mavenJava(MavenPublication) {
    artifact jar
    }
    }
    repositories {
    maven {
    url "file:///${project.projectDir}/mcmodsrepo"
    }
    }
    }

      KiraYoshikage i just did the same thing but switched mineminenomi for jei and it worked perfectly. 🗿 idk why mmnm still doesnt work.

      The docs for this are sadly not done yet...so nothing that I can point out to 😔
      However the fix is simple, in your build.gradle file under the runs block you have a client and server blocks in both of those blocks you'll need to add these 2 lines:

      property 'mixin.env.remapRefMap', 'true'
      property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"

      after which you'll need to run the ./gradlew genEclipseRuns or the equivalent for whatever IDE you're using to generate new .run files. This fixes it for me and its how I've setup the upcoming example for the docs (although I'm using a common configureEach block).

        wynd Thanks man! Still getting the error but got new output

        [14:17:58] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]: Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [mine-mine-no-mi.mixins.json:IServerWorldMixin] from phase [DEFAULT] in config [mine-mine-no-mi.mixins.json] FAILED during APPLY

        Exception in thread "main" [14:17:58] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:668]: at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:379)

        [14:17:58] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:710]: Caused by: org.spongepowered.asm.mixin.gen.throwables.InvalidAccessorException: No candidates were found matching field241103_E:Lnet/minecraft/world/storage/IServerWorldInfo; in net/minecraft/world/server/ServerWorld for mine-mine-no-mi.mixins.json:IServerWorldMixin->@Accessor[FIELD_GETTER]::getServerLevelData()Lnet/minecraft/world/storage/IServerWorldInfo; [INJECT Applicator Phase -> mine-mine-no-mi.mixins.json:IServerWorldMixin -> Apply Accessors -> -> Locate -> mine-mine-no-mi.mixins.json:IServerWorldMixin->@Accessor[FIELD_GETTER]::getServerLevelData()Lnet/minecraft/world/storage/IServerWorldInfo;]

        Is it dependant on my operating system maybe? I know you guys are using linux maybe its that, honestly i run out of ideas for this, have been struggling here for a while with this error. I will try diffrent os if that doesnt work i will prolly wait until you guyss finish docs. Thank you again for your time.

        build.gradle:

        buildscript {
        repositories {
        maven { url = 'https://maven.minecraftforge.net' }
        mavenCentral()
        }
        dependencies {
        classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
        }
        }

        apply plugin: 'net.minecraftforge.gradle'

        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'

        java.toolchain.languageVersion = JavaLanguageVersion.of(8) // Mojang ships Java 8 to end users, so your mod should target Java 8.

        println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
        minecraft {

        mappings channel: 'official', version: '1.16.5'
        
        
        runs {
            client {
                workingDirectory project.file('run')
        
                property 'forge.logging.markers', 'REGISTRIES'
        
                property 'mixin.env.remapRefMap', 'true'
                property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
        
        
                property 'forge.logging.console.level', 'debug'
        
                mods {
                    examplemod {
                        source sourceSets.main
                    }
                }
            }
        
            server {
                workingDirectory project.file('run')
        
                property 'mixin.env.remapRefMap', 'true'
                property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
        
                property 'forge.logging.markers', 'REGISTRIES'
        
                property 'forge.logging.console.level', 'debug'
        
                mods {
                    examplemod {
                        source sourceSets.main
                    }
                }
            }
        
            data {
                workingDirectory project.file('run')
        
        
                property 'forge.logging.markers', 'REGISTRIES'
        
        
                property 'forge.logging.console.level', 'debug'
        
                args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
        
                mods {
                    examplemod {
                        source sourceSets.main
                    }
                }
            }
        }

        }

        // Include resources generated by data generators.
        sourceSets.main.resources { srcDir 'src/generated/resources' }

        repositories {
        maven {
        url "https://cursemaven.com"
        content {
        includeGroup "curse.maven"
        }
        }
        }
        dependencies {

        //implementation fg.deobf("curse.maven:mineminenomi-78726:5589898")
        //implementation fg.deobf("curse.maven:jei-238222:5534622")
        implementation fg.deobf("curse.maven:mine-mine-no-mi-78726:5589898")
        
        minecraft 'net.minecraftforge:forge:1.16.5-36.2.40'

        }

        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")
        ])
        }
        }

        jar.finalizedBy('reobfJar')

        publishing {
        publications {
        mavenJava(MavenPublication) {
        artifact jar
        }
        }
        repositories {
        maven {
        url "file:///${project.projectDir}/mcmodsrepo"
        }
        }
        }

        • wynd replied to this.

          KiraYoshikage That is the error I was getting when I first setup too, don't forget to run gradlew genEclipseRuns or the equivalent for your IDE, that updates the .run files which actually boot up the game.

          Also worth noting, this is only an issue when trying to run it in the IDE, if you build the addon and plop it into minecraft together with MMnM, it will work normally.

            wynd I have tried that b4 and didnt work but trying again hurts nobody so hope it works.

            It worked thank you so much! Mark it as solved.