Jump to content

Forge not loading mod in Intellij


Big_Bad_E

Recommended Posts

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):

Spoiler

[20:22:06] [main/INFO] [GradleStart]: Extra: []
[20:22:07] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/ethan/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[20:22:07] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[20:22:07] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[20:22:07] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[20:22:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[20:22:07] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2768 for Minecraft 1.12.2 loading
[20:22:07] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_201, running on Windows 10:amd64:10.0, installed at D:\Program Files\Java\jdk1.8.0_201\jre
[20:22:07] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
[20:22:07] [main/ERROR] [FML]: Full: C:\Users\ethan\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
[20:22:07] [main/ERROR] [FML]: Trimmed: c:/users/ethan/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
[20:22:07] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[20:22:07] [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs.
[20:22:10] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
[20:22:10] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
[20:22:10] [main/INFO] [FML]: Searching D:\Mods\AutoMechanica\run\.\mods for mods
[20:22:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[20:22:10] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[20:22:10] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[20:22:10] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:22:10] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[20:22:10] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[20:22:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:22:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:22:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:22:16] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[20:22:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:22:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[20:22:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[20:22:17] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[20:22:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[20:22:17] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[20:22:19] [main/INFO] [minecraft/Minecraft]: Setting user: Player538
[20:22:27] [main/INFO] [minecraft/Minecraft]: LWJGL Version: 2.9.4
[20:22:29] [main/INFO] [FML]: -- System Details --
Details:
    Minecraft Version: 1.12.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_201, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 137023544 bytes (130 MB) / 363855872 bytes (347 MB) up to 3808428032 bytes (3632 MB)
    JVM Flags: 0 total; 
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: 
    Loaded coremods (and transformers): 
    GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.6.13544 Compatibility Profile Context 25.20.15011.1004' Renderer: 'Radeon RX 580 Series'
[20:22:29] [main/INFO] [FML]: MinecraftForge v14.23.5.2768 Initialized
[20:22:30] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[20:22:30] [main/INFO] [FML]: Replaced 1036 ore ingredients
[20:22:31] [main/INFO] [FML]: Searching D:\Mods\AutoMechanica\run\.\mods for mods
[20:22:32] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 194823700 nanos
[20:22:33] [main/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[20:22:35] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge] at CLIENT
[20:22:35] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge] at SERVER
[20:22:36] [main/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge
[20:22:36] [main/INFO] [FML]: Processing ObjectHolder annotations
[20:22:36] [main/INFO] [FML]: Found 1168 ObjectHolder annotations
[20:22:36] [main/INFO] [FML]: Identifying ItemStackHolder annotations
[20:22:36] [main/INFO] [FML]: Found 0 ItemStackHolder annotations
[20:22:36] [main/INFO] [FML]: Configured a dormant chunk cache size of 0
[20:22:36] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[20:22:36] [main/INFO] [FML]: Applying holder lookups
[20:22:36] [main/INFO] [FML]: Holder lookups applied
[20:22:36] [main/INFO] [FML]: Applying holder lookups
[20:22:36] [main/INFO] [FML]: Holder lookups applied
[20:22:36] [main/INFO] [FML]: Applying holder lookups
[20:22:36] [main/INFO] [FML]: Holder lookups applied
[20:22:36] [main/INFO] [FML]: Applying holder lookups
[20:22:36] [main/INFO] [FML]: Holder lookups applied
[20:22:36] [main/INFO] [FML]: Injecting itemstacks
[20:22:36] [main/INFO] [FML]: Itemstack injection complete
[20:22:37] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: UP_TO_DATE Target: null
[20:22:46] [Sound Library Loader/INFO] [minecraft/SoundManager]: Starting up SoundSystem...
[20:22:47] [Thread-5/INFO] [minecraft/SoundManager]: Initializing LWJGL OpenAL
[20:22:47] [Thread-5/INFO] [minecraft/SoundManager]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[20:22:47] [Thread-5/INFO] [minecraft/SoundManager]: OpenAL initialized.
[20:22:47] [Sound Library Loader/INFO] [minecraft/SoundManager]: Sound engine started
[20:23:05] [main/INFO] [FML]: Max texture size: 16384
[20:23:06] [main/INFO] [minecraft/TextureMap]: Created: 512x512 textures-atlas
[20:23:12] [main/INFO] [FML]: Applying holder lookups
[20:23:12] [main/INFO] [FML]: Holder lookups applied
[20:23:12] [main/INFO] [FML]: Injecting itemstacks
[20:23:12] [main/INFO] [FML]: Itemstack injection complete
[20:23:13] [main/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[20:23:14] [main/INFO] [mojang/NarratorWindows]: Narrator library for x64 successfully loaded
[20:23:15] [Realms Notification Availability checker #1/INFO] [mojang/RealmsClient]: Could not authorize you against Realms server: Invalid session id
[20:24:30] [main/INFO] [minecraft/Minecraft]: Stopping!
[20:24:30] [main/INFO] [minecraft/SoundManager]: SoundSystem shutting down...
[20:24:30] [main/WARN] [minecraft/SoundManager]: Author: Paul Lamb, www.paulscode.com

 

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
Link to comment
Share on other sites

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

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

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)

Link to comment
Share on other sites

8 hours ago, Cadiboo said:

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

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.

Link to comment
Share on other sites

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

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

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)

Link to comment
Share on other sites

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.