Jump to content

Any alternative to setupDecompWorkspace that doesn't involve Intellij or Eclipse?


Recommended Posts

Posted

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?

Posted
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

 

Posted
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

 

Posted

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

Posted
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?

 

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.