Jump to content

Recommended Posts

Posted (edited)

Forge just doesn't see my mod at all.

 

How I set it up:

copy the files: gradlew.bat, gradlew, gradle, src, build.gradle into my mod folder

Run gradlew setupDecompWorkspace

Open the build.gradle as a project (I have a plugin to open it)

Close Intellij

Run gradlew genIntellijRuns

Open Intellij

Set the classpath to .main on both configurations

 

My main class:

@Mod(modid = "automechanica", name = "Automechanica", version = "1.0.0")
public class Main {
	@Mod.EventHandler
    public void preInit(FMLPreInitializationEvent event) {

    }

    @Mod.EventHandler
    public void init(FMLInitializationEvent event) {

    }

    @Mod.EventHandler
    public void postInit(FMLPostInitializationEvent event) {

    }
}

mcmod.info:

[
{
  "modid": "automechanica",
  "name": "AutoMechanica",
  "description": "Automate your Minecraft world to your needs!",
  "version": "${version}",
  "mcversion": "${mcversion}",
  "url": "",
  "updateUrl": "",
  "authorList": ["Big_Bad_E"],
  "credits": "Forge",
  "logoFile": "",
  "screenshots": [],
  "dependencies": []
}
]

pack.mcmeta:

{
    "pack": {
        "description": "Automechanica resources",
        "pack_format": 3;
    }
}

 

When I press run and let Minecraft run, I see the following mods:

Minecraft

Minecraft Coder Pack

Forge Mod Loader

Minecraft Forge

 

I have made mods and they have loaded, but for some reason this mod is not loading.

 

Intellij version: Intellij IDEA 2018.3.3 (Community Version)

 

Console output if it is needed (I don't see anything out of the ordinary):

  Reveal hidden contents

 

Thanks in advance for any help, I appreciate it.

 

Update: Now I get this error when I open my project:

"4:54 PM    Unsupported Modules Detected: Compilation is not supported for following modules: AutoMechanica. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project."

Edited by Big_Bad_E
Posted

Try refreshing the gradle project. Closing and reopening IntelliJ is not necessary. 

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
  On 3/5/2019 at 1:59 PM, Cadiboo said:

Try refreshing the gradle project. Closing and reopening IntelliJ is not necessary. 

Expand  

Last time I did this gradle threw an error, I think because the folder was in use.

 

Also how do I refresh the gradle project, I got a new hard drive and now all the dependencies are missing from my mods.

Posted

You refresh the gradle project in IntelliJ by going to the gradle tab in the right sidebar, opening it and clicking the "refresh all gradle projects" button that looks like ?

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

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.