Posted March 8, 20214 yr I'm trying to setup forge for 1.16 modding and gradle is giving me a lot of problems. I know that pre-1.13, you could get away with gradle setupDecompWorkspace, which is now gone. The only possibilities I found online require Eclipse or IntelliJ to do the setting up for you, but I would preferrably do without an IDE (I use Sublime Text, if that can be considered one). Is this not a possibility anymore?
March 8, 20214 yr Author 35 minutes ago, diesieben07 said: No setup task is necessary. Simply run the build or runXXX gradle tasks. Then why does this happen? error: package cpw.mods.fml.common does not exist
March 8, 20214 yr Post your entire log. As stated there are no setup tasks needed. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
March 8, 20214 yr Author gradlew build To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.10.3/userguide/gradle_daemon.html. Daemon will be stopped at the end of the build stopping after processing > Configure project : Java: 1.8.0_281 JVM: 25.281-b09(Oracle Corporation) Arch: amd64 New Dep: net.minecraftforge:forge:1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3 > Task :compileJava 2021-03-08 17:30:20,182 Task worker for ':' Thread 2 WARN Advanced terminal features are not available in this environment Note: SpongePowered MIXIN Annotation Processor Version=0.8.2 Note: ObfuscationServiceMCP supports type: "searge" Note: ObfuscationServiceMCP supports type: "notch" C:\projects\betterSlabs\src\main\java\com\lenerdv\better_slabs\BetterSlabs.java:3: error: package cpw.mods.fml.common does not exist import cpw.mods.fml.common.Mod; ^ C:\projects\betterSlabs\src\main\java\com\lenerdv\better_slabs\BetterSlabs.java:5: error: cannot find symbol @Mod(modid = BetterSlabs.modId, version = BetterSlabs.version) ^ symbol: class Mod 2 errors > Task :compileJava FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileJava'. > Compilation failed; see the compiler error output for details. * 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
March 9, 20214 yr Author 14 hours ago, LexManos said: Post your entire log. As stated there are no setup tasks needed. Done
March 9, 20214 yr Correct, that class does not exist in 1.16, it has not existed for quite some time. As in at least 3 years. Update your code to 1.16. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
March 9, 20214 yr Author 7 minutes ago, LexManos said: Correct, that class does not exist in 1.16, it has not existed for quite some time. As in at least 3 years. Update your code to 1.16. Then what is the class for the @ Mod annotation?
March 9, 20214 yr https://github.com/MinecraftForge/MinecraftForge/blob/1.16.x/mdk/src/main/java/com/example/examplemod/ExampleMod.java Also, use your IDE it'd tell you. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.