Topic category: Troubleshooting, bugs, and solutions
I have been working on this modpack for about a week now and I have a little over 100 parts in it. I tried to make a "reset button" using world variables and my world didn't seem to like that so I deleted the variable and the code I used it in but no blocks. Now I can't start my world up because I keep getting this error.
=========================================================================================================================================
Executing
Gradle task: build
Build
info: MCreator 2021.1.18117, forge-1.16.5, 64-bit, 16341 MB, Windows 10,
JVM 1.8.0_275, JAVA_HOME: D:\Minecraft Mod Maker\MCreator\jdk
>
Task :compileJava
C:\Users\Rembo\MCreatorWorkspaces\classic_ages\src\main\java\net\mcreator\classicages\procedures\TreeSapAnimationProcedure.java:104:
error: package Sap2Block does not exist
BlockState _bs = Sap2Block.block.getDefaultState();
^
(Repeats with different custom blocks here)
42
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 3s
1
actionable task: 1 executed
BUILD
FAILED
Task
completed in 6 seconds
=========================================================================================================================================
I shortened the code where it repeated with the different blocks that "do not exist". I have the blocks in my folders on MCreator so I don't know why it is telling me they are missing. Any help would be greatly appreciated. I would rather not start over on everything. I have already deleted my gradle folder and that didn't help. I have already regened the code and that didn't work. The error takes me to like 6 procedures that were working fine but the code says that some of my blocks are missing. I couldn't find anything wrong with the code or blocks. I'm just stuck.
You have deleted a mod element but you still use it on some places
The only thing I could think of is the procedure I deleted was apart of the blocks it said were gone but when I checked in the blocks triggers, nothing was there so I couldn’t change anything about it.
I just ended up deleting all the blocks/procedures with issues and remade them. It fixed the problem but took me an hour and a half to redo. No fun but I’m glad to be back. Thank you for your help and time!
I know this is really late, but for anyone who also had this problem, I solved it by deleting everything in src\main\java\net\mcreator\mod and then rebuilding the project.
I have the same problem, and can confirm the above solution probably doesn't work. (Or at least didn't when I tried it.)
it worked, thank you!
I tried the delete everything method and that didn’t work so I pain stakingly opened each element and then saved it (I deleted the creative tabs they were in so my ModTabs.Java package was being referenced but did not exist)
I am having the same problem with the creative tabs, I need help, I can't build or run my project.
I have over 800 elements 😭
Please post link to paste service with your build log