Need help fixing a mixin error

Started by OtterlyOmari on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help fixing a mixin error

Hi there! I recently installed two plugins, to help me implement a sort of forest biome to the end, with new wood, structures, mobs, so on. but ever since installing Forge mixins support, a dependency for the End biomes plugin, but whenever I try to playtest, I get the following error

Executing Gradle task: runClient
Build info: MCreator 2024.4.52410, forge-1.20.1, 64-bit, 32676 MB, Windows 11, JVM 21.0.4, JAVA_HOME: E:\Program Files\Pylo\MCreator\jdk, started on: 2025-02-19-19:33:11
Loaded APIs: pehkui, tetra_libs, serene_seasons, kotlin, patchouli, geckolib, oculus, passive_skill_tree, jei

FAILURE: Build failed with an exception.
* Where:
Build file 'E:\Mcreator\Test\build.gradle' line: 3
* What went wrong:
An exception occurred applying plugin request [id: 'org.spongepowered.mixin', version: '0.7.+']
> Failed to apply plugin 'org.spongepowered.mixin'.
> Could not find property 'minecraft', or 'patcher' on root project 'Test', ensure ForgeGradle is applied.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 684ms

BUILD FAILED
Task completed in less than a second

My build.gradle file looks like this

plugins {
    id 'eclipse'
    id 'org.spongepowered.mixin' version '0.7.+'
    id 'net.minecraftforge.gradle' version '[6.0.16,6.2)'
}

version = '1.0'
group = 'com.otterlyomari.fantasy_reinvented'
archivesBaseName = 'fantasy_reinvented'

java.toolchain.languageVersion = JavaLanguageVersion.of(17)

minecraft {
    mappings channel: 'official', version: '1.20.1'

    accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')

    copyIdeResources = true

    runs {
        client {
            def mcreatorJvmOptions = System.getenv('MCREATOR_JVM_OPTIONS')
            if (mcreatorJvmOptions) {
                jvmArgs += mcreatorJvmOptions.split("\\s+").findAll { it.trim() }.toList()
            }

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

        server {
        }

        configureEach {
            workingDirectory project.file('run')

            property 'forge.logging.markers', 'REGISTRIES'
            property 'forge.logging.console.level', 'debug'

            mods {
                examplemod {
                    source sourceSets.main
                }
            }
        }
    }
}

dependencies {
    minecraft 'net.minecraftforge:forge:1.20.1-47.3.0'
    annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
}

mixin {
    add sourceSets.main, 'mixins.fantasy_reivented.refmap.json'

    config 'mixins.fantasy_reivented.json'

    debug.verbose = true
    debug.export = true
    dumpTargetOnFailure = true

    quiet
}

tasks.withType(JavaCompile).configureEach {
    options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
}

apply from: 'mcreator.gradle'

 

What I've tried:

running gradle commands in Command Prompt to refresh dependencies, clear gradle cache, and rebuild

Deleting the Biome and End Biome elements

 

Any help is appreciated, thank you

 

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wouldn't I need to…
Thu, 02/20/2025 - 19:59

Wouldn't I need to completely re-do the mod for it to work in Neo Forge? I just don't know if it's worth switching, especially since I have some custom code I've written in the code editor.