Topic category: Help with Minecraft modding (Java Edition)
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\FridgeProProcedure.java:64: 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 https://help.gradle.org
BUILD FAILED in 4s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 6 seconds
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.