One or more of your mod files did not compile properly (Please help)

Started by OrangeAedan on

Topic category: Troubleshooting, bugs, and solutions

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
One or more of your mod files did not compile properly (Please help)

Every time i try to run my mod it gives this error. I regenerated the code, i deleted the caches folder but its not working. the console below.

 

 

Executing Gradle task: runClient
Build info: MCreator 2023.2.24119, forge-1.19.4, 64-bit, 6082 MB, Windows 11, JVM 17.0.5, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2023-07-23-16:06:03

> Configure project :
The code of this workspace uses official obfuscation mappings provided by Mojang. These mappings fall under their associated license you should be fully aware of.
(c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes,
but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.
Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available
at https://account.mojang.com/documents/minecraft_eula.

> Task :compileJava
C:\Users\setha\MCreatorWorkspaces\SG_Planets\src\main\java\net\mcreator\sgplanets\init\SgPlanetsModBlocks.java:29: error: cannot find symbol public static final RegistryObject<Block> LOPPER_13B_PORTAL = REGISTRY.register("lopper_13b_portal", () -> new Lopper13bPortalBlock());
^
symbol: class Lopper13bPortalBlock
location: class SgPlanetsModBlocks
C:\Users\setha\MCreatorWorkspaces\SG_Planets\src\main\java\net\mcreator\sgplanets\init\SgPlanetsModItems.java:24: error: cannot find symbol public static final RegistryObject<Item> LOPPER_13B = REGISTRY.register("lopper_13b", () -> new Lopper13bItem());
^
symbol: class Lopper13bItem
location: class SgPlanetsModItems
2 errors
> 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 --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 5s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 8 seconds

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It would be cool if you…
Mon, 07/24/2023 - 16:03

It would be cool if you could show the code with these lines with errors

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, you may have deleted the…
Mon, 07/24/2023 - 16:19

Oh, you may have deleted the 'looper_13b' and 'looper_13_b_portal'. Try clicking 'Regenerate code and build'

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you so much! that…
Mon, 07/24/2023 - 18:52

Thank you so much! that worked.