Skip to content

Failed to load mod #53

@1720693335

Description

@1720693335

Describe the bug
After successfully packaging the minecraftenv mod using build.gradle, placing it in the Minecraft client's mods folder results in a java.lang.ClassNotFoundException: kotlin.NoWhenBranchMatchedException error, preventing the mod from loading. This issue may be related to Kotlin.

Environment

  • Minecraft Version: 1.21
  • Fabric Loader: 0.15.11
  • Fabric API: 0.100.6+1.21
  • JDK Version: 21
  • OS: Windows 11

Reproduction Steps

  1. Clone the repository and navigate to the src/craftground/MinecraftEnv directory
  2. Execute ./gradlew build (or shadowJar) to package the mod, generating a JAR file
  3. Place the JAR in the Minecraft client's mods folder

Could you provide a more detailed, complete build process demonstration from source code to a runnable mod (including necessary configuration changes and commands)?
Thank you for your hard work and assistance! I really like your project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions