Cant Compile Code

Started by llDrMilkCowll on Sat, 07/10/2021 - 04:33

Topic category: Help with modding (Java Edition)

Last seen on 05:54, 1. Sep 2021
Joined Jul 2021

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Cant Compile Code
Sat, 07/10/2021 - 04:33 (edited)

So im trying to export my mod but I cant seem to compile this file. I pretty sure I know why as I have an item that's used in another mod in the ItemStack but I'm not sure how I could make it still compile. Here is the console:

Executing Gradle task: build
Build info: MCreator 2021.1.18117, forge-1.16.5, 64-bit, 32716 MB, Windows 10, JVM 1.8.0_275, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
> Task :compileJava FAILED
C:\Users\msglm\MCreatorWorkspaces\Survival Additions\src\main\java\survivaladditions\procedures\ error: cannot find symbol }.getItemStack(new BlockPos((int) x, (int) y, (int) z), (int) (0))).getItem() == new ItemStack(SItems.PURIFIED_WATER_BOTTLE).getItem())) {
symbol: variable SItems
location: class FridgeProProcedure
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
1 actionable task: 1 executed
Task completed in 6 seconds

Edited by llDrMilkCowll on Sat, 07/10/2021 - 04:33
Could you please post a…
Sat, 07/10/2021 - 09:25

Could you please post a screenshot of the "FridgeProProcedure" so that we can see what might cause this? Also opening it and saving it again might help with this issue.