[SOLVED] [Fabric/1.20.1] One or more of your main mod files did not compile properly

Started by Morrigan Narukami on

Topic category: Troubleshooting, bugs, and solutions

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED] [Fabric/1.20.1] One or more of your main mod files did not compile properly
Wed, 07/17/2024 - 08:41 (edited)

I'm trying to create an mini mod for an personal modpack I'm creating. It runs on Fabric 1.20.1 and the intention is to have an dimension just for the players to spawn in (the mod will just add the dimension btw)

The thing is, no matter what I add, this error always appears. At the moment there is just one block

 

What I need to do for it to work? Does it needs to be an specific MCreator version or something like that?

Log:

> Configure project :
Fabric Loom: 1.4.6
> Task :compileJava
C:\Users\[MY USER]\MCreatorWorkspaces\spawn_dimension\src\main\java\net\mcreator\spawndimension\SpawnDimensionMod.java:35: error: cannot find symbol SpawnDimensionModItems.load();
^
symbol: variable SpawnDimensionModItems
location: class SpawnDimensionMod
1 error
> 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 --info option to get more log output.
> Run with --scan to get full insights.
BUILD FAILED in 10s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 19 seconds

.java code:

I've did not changed anything on the code. I'm just sending it in case it helps somehow

The generator I'm using:

https://mcreator.net/plugin/64512/mcreator-fabric-generator

Edited by Morrigan Narukami on Wed, 07/17/2024 - 08:41
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What MCreator version are…
Tue, 07/16/2024 - 13:02

What MCreator version are you using?

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The most recent one (2024.2)…
Tue, 07/16/2024 - 15:55

The most recent one (2024.2). I've downloaded yesterday, so I thought it would be better to use the most recent version

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the fabric generator you are…
Tue, 07/16/2024 - 16:10

the fabric generator you are using is only compatible with 2023.4

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, I see. Is there any…
Tue, 07/16/2024 - 16:23

Oh, I see.

Is there any other fabric generator that is compatible with 2024.2? Or this is the only one avaliable?

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think it is the only one…
Tue, 07/16/2024 - 16:36

I think it is the only one since I can't find any others, and it's creator won't update it ever again, so the only way to make fabric mods is to use 2023.4

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Damn. Well, I tried to use…
Wed, 07/17/2024 - 08:41

Damn. Well, I tried to use 2023.4 version and it works, although somethings were a little confusing to why was causing some errors (but I managed to make it work)

Thanks dude

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You're welcome 
Wed, 07/17/2024 - 11:26

You're welcome