Mod files compilation error

Started by Homk on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 16:18, 27. Apr 2024
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mod files compilation error
Sat, 01/27/2024 - 18:06 (edited)

I mentioned this in another topic, but i thought it would be better to move it to its own topic.

 

Attempting to run a mod results in 'One or more of my main mod files not compiling properly'
I made a test mod, and this is in the console:


Executing Gradle task: runClient
Build info: MCreator 2023.4.52316, forge-1.20.1, 64-bit, 7883 MB, Windows 11, JVM 17.0.9, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2024-01-25-10:47:54

> Task :compileJava FAILED
C:\Users\*****\MCreatorWorkspaces\emp\src\main\java\net\mcreator\emp\EmpMod.java:50: error: package EmpModItems does not exist EmpModItems.REGISTRY.register(bus);
^
1 error
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
BUILD FAILED in 2s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 30 seconds



Running the test mod works fine when there's no mod elements in it

Edited by Homk on Sat, 01/27/2024 - 18:06
Last seen on 16:18, 27. Apr 2024
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I started seeing this issue…
Thu, 01/25/2024 - 11:02

I started seeing this issue when I updated from 2023.3 to 2023.4

This is caused by you not…
Fri, 01/26/2024 - 17:04

This is caused by not updating the plugins for the appropriate version, namely geckolib

Last seen on 16:18, 27. Apr 2024
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you so much!!!!!! :D
Sat, 01/27/2024 - 18:06

Thank you so much!!!!!! :D