Dimensions dont work

Issue description

My dimension always has an error and I've gone through it, nothing seems wrong.


This is the console:

Executing Gradle task: build
Build info: MCreator 2020.3.22116, forge-1.15.2, 64-bit, 3998 MB, Windows 10, JVM 1.8.0_252, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1
> Task :compileJava FAILED
C:\Users\gcwil\MCreatorWorkspaces\logosdimension\src\main\java\net\mcreator\logosdimension\world\dimension\ObscurityDimension.java:159: error: '{' expected public static class Size /* failed to load code for net.minecraft.block.NetherPortalBlock */
C:\Users\gcwil\MCreatorWorkspaces\logosdimension\src\main\java\net\mcreator\logosdimension\world\dimension\ObscurityDimension.java:190: error: illegal start of type }
C:\Users\gcwil\MCreatorWorkspaces\logosdimension\src\main\java\net\mcreator\logosdimension\world\dimension\ObscurityDimension.java:190: error: ';' expected }
C:\Users\gcwil\MCreatorWorkspaces\logosdimension\src\main\java\net\mcreator\logosdimension\world\dimension\ObscurityDimension.java:236: error: illegal start of type }
C:\Users\gcwil\MCreatorWorkspaces\logosdimension\src\main\java\net\mcreator\logosdimension\world\dimension\ObscurityDimension.java:236: error: ';' expected }
C:\Users\gcwil\MCreatorWorkspaces\logosdimension\src\main\java\net\mcreator\logosdimension\world\dimension\ObscurityDimension.java:303: error: reached end of file while parsing }
C:\Users\gcwil\MCreatorWorkspaces\logosdimension\src\main\java\net\mcreator\logosdimension\world\dimension\ObscurityDimension.java:304: error: reached end of file while parsing 7 errors
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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#se…
1 actionable task: 1 executed
Task completed in 8813 milliseconds

Issue comments

Delete the entire <your user home folder>/.mcreator/gradle folder, create a new workspace with the same generator version as the version of the workspace failing, after the setup of this new workspace is done, open your current workspace, and click Build & run -> Build workspace, then Build & run -> Reload gradle project and then Build & run -> Regenerate code and build.

Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.