• 0

    posted a message on Cannot add dependency

    I'm making a 1.16.5 mod based on the titan shifters from Attack on Titan, and I have been stuck on adding the dependency Pehkui for a few days. There are so many sources and they all have different ways to add dependencies, none of which have worked for me. right now, I am trying to add the dependency by putting it in the libs folder and the run/mods folder. it is giving me this error in the console when I restart build.gradle:


    FAILURE: Build failed with an exception.
    * What went wrong:
    A problem occurred configuring root project 'TitanShifterPowers'.
    > Could not resolve all artifacts for configuration ':classpath'.
    > Could not find any matches for net.minecraftforge.gradle:ForgeGradle:5.1.+ as no versions of net.minecraftforge.gradle:ForgeGradle are available.
    Searched in the following locations:
    - https://files.minecraftforge.net/net/minecraftforge/gradle/ForgeGradle/maven-metadata.xml
    - https://repo.maven.apache.org/maven2/net/minecraftforge/gradle/ForgeGradle/maven-metadata.xml
    Required by:
    project :
    * 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 709ms



    And this error in problems:


    Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-7.1.1-bin.zip'.


    I have put nothing extra in the build.gradle this time, but I have tried it before with compileOnly, runtimeOnly, repositories, etc. Any help with this is much appreciated, thank you in advance.


    Update: I found the problem with why I was getting the errors, apparently I just needed to have a /maven in maven { url = 'https://files.minecraftforge.net/maven' } in repositories. Right now, I am trying to add the dependency just in my runtime. This is what it looks like right now:



    repositories {
    maven {
    url "https://www.cursemaven.com"
    }
    }
    dependencies {
    minecraft 'net.minecraftforge:forge:1.16.5-36.2.0'

    runtimeOnly fg.deobf("curse.maven:pehkui-319596:3501593")
    }

    This doesn't work, it gives me no error, the game just crashes when it is loading. There is one line in the console when the game loads that is in red though, and it's this:



    Exception in thread "main" [21:42:04] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    Posted in: Modification Development
  • 0

    posted a message on Naruto-Anime Mod

    I have the mongekyou sharingan skill learner kagutsuchi, I learned Amaterasu but now the skill learner says 'not available yet'. Does this mean that I have to wait a while for my next ability, or has Mathioks not added the feature yet?

    Posted in: WIP Mods
  • To post a comment, please .