Jump to content

[1.13.2] (25.0.56) Errors in .\gradlew eclipse, many errors in ExampleMod?


Recommended Posts

Posted

It's probably not a good idea, but I wanted to try modding with the beta 1.13.2 Forge MDK. Unfortunately, I can't get past setting up the workspace.

 

What I've done:

1. Download Forge MDK (25.0.56)

2. Copy files within Forge MDK to another folder called "TestMod"

3. Open PowerShell within the folder, run .\gradlew eclipse

4. End up with the following:

  Reveal hidden contents

5. It says "BUILD SUCCESSFUL", open Eclipse and import new Gradle project (importing the "TestMod" folder)

6. ExampleMod has 42 errors, including things like "FMLJavaModLoadingContext cannot be resolved". I also can't find any of the Minecraft-related files that I recall there being in previous versions.

7. Run .\gradlew eclipse again, outputs this (pretty much the same thing as before):

  Reveal hidden contents

8. Import the folder into Eclipse again, no changes. 

 

I feel like I'm doing something wrong, but I can't find any answers as to what I should be doing. (I did try to read as many stickied posts as I could, but I might've missed something)

Posted

It said BUILD SUCCESSFUL, but that's because it swallowed a few errors and didn't count them as a failure for some reason.

I believe Forge only works on Java 8 and 10 at this time, try using a JDK for one of those versions.

NOTE: All mods must target Java 8 or risk incompatibility (Mojang still ships Minecraft with a Java 8 runtime.)

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted (edited)

Right, I'll try using a JDK for Java 8. At the moment I'm using JDK for Java 11 because it was the first one I found and I read it is supposedly downwards compatible. I'll post an update once that's done.

 

 

Update: Using a Java 8 JDK worked. ExampleMod no longer has errors. I still don't see any of the Minecraft resources like I remember, but maybe that's something else (perhaps I am remembering it wrong. It wouldn't make sense to have a mod come with untouched vanilla classes- that would just be padding the file size...probably).

Edited by Axoris

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.