I have an error creating a dimension

Started by _Cr1ssG4m3r_ on

Topic category: User side tutorials

Last seen on 15:44, 1. Apr 2023
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have an error creating a dimension

When I create a new dimension I always get the following error:

Executing Gradle task: build
Build info: MCreator 2020.5.47520, forge-1.15.2, 64-bit, 3985 MB, Windows 8.1, JVM 1.8.0_265, 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
C:\Users\MyName\MCreatorWorkspaces\swsm\src\main\java\net\mcreator\swsm\world\dimension\DagobahDimension.java:132: error: illegal start of type }
^
C:\Users\MyName\MCreatorWorkspaces\swsm\src\main\java\net\mcreator\swsm\world\dimension\DagobahDimension.java:132: error: ';' expected }
^
C:\Users\"MyName"\MCreatorWorkspaces\swsm\src\main\java\net\mcreator\swsm\world\dimension\DagobahDimension.java:197: error: reached end of file while parsing }
^
3 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
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…
BUILD FAILED in 48s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 51683 milliseconds

I have already tried deleting the gradle "cache" folder, restoring the gradle and the components, I try to make it simple, with a single biome, solid and floating blocks, and still I get the same error. What I do?

Clarification: I have the portal deactivated, and I have not modified any code.

In some cases, Gradle caches…
Fri, 12/18/2020 - 18:41

In some cases, Gradle caches that make sure the build process does not take too long can get corrupted. In such a case, go to:

<your user home folder>/.mcreator/gradle

In this folder, there is a folder called caches. Delete this folder and open MCreator again. Next build will take a bit longer as caches need to be rebuilt. If you can not delete all files in this folder (which is necessary), reboot the computer first to remove any potential file locks.

If this is not enough to make things work, delete the entire gradle folder, not just caches, and try again.

If even this fails, try to 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.

Last seen on 15:44, 1. Apr 2023
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've recently tried it but…
Fri, 12/18/2020 - 20:49

I've recently tried it but it hasn't worked

Last seen on 12:33, 23. Aug 2021
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
some times a option will not…
Sun, 12/20/2020 - 07:53

some times a option will not allow other options like: make an entity and ad flying and no fall damage will cause the same thing

Last seen on 15:44, 1. Apr 2023
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What do I do in the case of…
Sun, 12/20/2020 - 16:01

What do I do in the case of dimensions?

Last seen on 15:44, 1. Apr 2023
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help otherwise I will…
Thu, 12/24/2020 - 17:30

I need help otherwise I will not be able to continue with my mod. I don't know if it has something to do with it but when I create a new workplace it tells me "invalid ram", in the "gradle and run" options I lower it to "inital memory" and I raise it to "maximum memory", the "invalid ram "is solved, but it won't let me create the dimensions. I don't know about programming so I can't code it from scratch