Spectrall368 / Generator-1.19.2

MCreator Plugin (2023.3/2023.4/2024.x - 1.19.2)
https://mcreator.net/plugin/99914/minecraft-forge-1192-java-editiondatapack-generator
Other
2 stars 1 forks source link

Gradle version 8.7 cannot be applied #7

Closed JeanWorldTour2 closed 4 months ago

JeanWorldTour2 commented 4 months ago

Executing Gradle task: eclipse Build info: MCreator 2024.1.18518, forge-1.19.2, 64-bit, 14283 MB, Windows 11, JVM 17.0.10, JAVA_HOME: D:\Program Files\MCreator 2024.1\MCreator\jdk, started on: 2024-05-04-16:02:47

FAILURE: Build failed with an exception.

BUILD FAILED Task completed in 14 seconds

Spectrall368 commented 4 months ago

Try creating a new workspace with the same generator, take the build.gradle file, paste it into your workspace and try again

Spectrall368 commented 4 months ago

Could you attach the workspace?

JeanWorldTour2 commented 4 months ago

wait i will try. it needs a bit of time

JeanWorldTour2 commented 4 months ago

https://www.transfernow.net/dl/20240504ifNqZTSG that's the workspace

Spectrall368 commented 4 months ago

Try deleting the one written in the build.gradle file and pasting this

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

version = '1.0'
group = 'com.yourname.modid'
archivesBaseName = 'modid'

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

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

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

    copyIdeResources = true

    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
                }
            }
        }
    }
}

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

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

    config 'mixins.soul_glowstone.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'
Spectrall368 commented 4 months ago

Your error is caused by this plugin: https://mcreator.net/plugin/104607/forge-mixins-support

Spectrall368 commented 4 months ago

Try deleting the one written in the build.gradle file and pasting this

Tell me later if it goes

JeanWorldTour2 commented 4 months ago

thanks it worked and i will try to make the plugin compactible