A Kotlin Minecraft mod template. Supports both forge & fabric. Includes github CI & CD. Includes cloth config / mod menu. Uses gradle kts and is multi module
Could not create an instance of type org.gradle.jvm.toolchain.internal.DefaultToolchainSpec.
Error getting artifact: net.minecraft:joined:1.19.4-20230314.122934:srg@jar from MCPRepo
org.gradle.api.reflect.ObjectInstantiationException: Could not create an instance of type org.gradle.jvm.toolchain.internal.DefaultToolchainSpec.
Latest ForgeGradle version: 6.0.4
However, it works locally:
on Windows 11
It is probably related to ForgeGradle 6. If the issue is blocking for you, downgradle to gradle 7.3 and ForgeGradle 5.1+ and Fabric Loom 1.0 (1.2 depends on gradle 8)
Example: https://github.com/lilmods/kotlin-minecraft-mod-template/actions/runs/5109527891/jobs/9185295213
Error:
Latest ForgeGradle version:
6.0.4
However, it works locally: