#dependencies issue

15 messages · Page 1 of 1 (latest)

jagged kindle
#

https://github.com/fifth-light/ArmorStand.git
In the source code of this mod, there’s a library called blazerod that allows rendering 3D models (built with Kotlin and Bazel).
I want to use blazerod API in IntelliJ, but I keep running into dependency issues because I’m not sure how to set it up correctly.

https://github.com/fifth-light/ArmorStand/issues/1#issuecomment-2954618289
This comment suggested to remap with Yarn and then use modImplementation, but due to my limited understanding, I wasn’t able to get it working.

How can I set it up correctly?

GitHub

Player model mod for Minecraft Java version 1.21.8. Supports glTF, VRM, PMX and PMD. - fifth-light/ArmorStand

GitHub

Hello, first of all, I think it's incredible how well the project works, but there are some things I would like to suggest, such as separating everything into two projects: one dedicated exclus...

small pendant
#

What have you tried already and what is the actual error?

jagged kindle
# small pendant What have you tried already and what is the actual error?
repositories {
    mavenLocal()
    flatDir {
        dirs("libs")
    }
}

dependencies {
    minecraft "com.mojang:minecraft:${project.minecraft_version}"
    mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
    modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
    modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

    modApi fileTree(dir: 'libs/artifactsbazel/blazerod', include: ['*.jar'])
}

The jar files are artifacts of Blazerod built via GitHub Actions.
Initially, modImplementation was used, but it caused errors such as
/META-INF/MANIFEST.MF and Failed to setup Minecraft, java.io.UncheckedIOException: Failed to read jar,
so it was temporarily changed to modApi.

Inside Blazerod, there is a 'ballblock.jar' containing code that implements items using Blazerod.
When executing that code from Main.main, the following error occurs:
Caused by: java.lang.NoClassDefFoundError: top/fifthlight/blazerod/model/renderer/Renderer.
This path exists only in the source code and does not exist in the artifacts.

small pendant
#

Can you please take a screenshot of the folders including the jar?

jagged kindle
#

"sheismywaifu" is the mod I'm currently developing. For convenience, I temporarily moved the jar files under the blazerod folder.
Their original location is the same as the "artifacts-bazel" path.

jagged kindle
# dire salmon that's me v:

Thank you!! I tried something similar to the screenshot you provided before and failed, but this time it seems to be working. I think I made a mistake last time.

This might be a basic question, but could you also show the import part? If I just paste import top.fifthlight.blazerod.model.ModelFileLoaders;, I get symbol issues.

jagged kindle
jagged kindle
fallen elm
#

today some discord digging led me to this thread

#

how is it going currently

#

i have refactored the api a lot

dire salmon
#

At least the last test I did worked perfectly, but I haven't had time to continue developing what I had in mind. As soon as I have more free time, I'll continue with it, and if I find anything strange, I'll let you know.

old stone