#Problem with mod build

1 messages · Page 1 of 1 (latest)

mint bone
#

I was developing my mod for Minecraft 1.21 , and tested it through runClient, and everything worked. But when I used ./gradlew build, and moved the mod to the /mods folder, and tried to run the game, I got an error:
java.lang.RuntimeException: Could not execute entrypoint stage 'client' due to errors provided by 'mymod'.
I thought my code contained errors, so I tried downloading the source code of the random mod for 1.21.
https://github.com/Theoness1/EatingAnimation
I used ./gradlew build again, and moved the mod to the /mods folder, and got a similar error.
https://mclo.gs/lImkLM3
I tried:

tropic summit
#

which jar file did you use?

mint bone
tropic summit
#

yeah wrong one

#

also don't upload jars here

#

!!export

cyan runeBOT
#

Exporting your mod as a JAR: run in a terminal from the same directory as the mod project directory ./gradlew build on GNU/Linux and Mac, or gradlew build on Windows. Alternatively, in IntelliJ IDEA, open the Gradle tab on the right and execute build under tasks. The JARs should appear in ${projectDir}/build/libs. Use the one with the shortest name outside development.

tropic summit
#

yes but you used the wrong jar file

#

it should be the one with the shortest name

#

in the /libs directory

#

NOT devlibs

mint bone
#

Oh, I didn't notice this folder