[SOLVED] Dimension Build error 2023.1

Started by Darrow1302 on

Topic category: Troubleshooting, bugs, and solutions

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED] Dimension Build error 2023.1
Sun, 04/23/2023 - 21:47 (edited)

Executing Gradle task: build
Build info: MCreator 2023.1.10610, forge-1.19.2, 64-bit, 3858 MB, Windows 11, JVM 17.0.5, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2023-04-18-18:31:28

> Configure project :
The code of this workspace uses official obfuscation mappings provided by Mojang. These mappings fall under their associated license you should be fully aware of.
(c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes,
but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.
Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available
at https://account.mojang.com/documents/minecraft_eula.

> Task :compileJava FAILED
C:\Users\Ryan\MCreatorWorkspaces\wonderlandmod\src\main\java\net\mcreator\wonderlandmod\world\teleporter\HellDimensionWorldPortalShape.java:4: error: reached end of file while parsing public class HellDimensionWorldPortalShape /* failed to load code for net.minecraft.world.level.portal.PortalShape */
^
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 5s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 38 seconds
 

How can i resolve this problem ?

I already try to clean all the gradle file but nothing to do

I already try to reload and regenerate the gradle project.

Sorry if i make mistakes, i'm not very good in English :/

Edited by Darrow1302 on Sun, 04/23/2023 - 21:47
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
package net.mcreator…
Wed, 04/19/2023 - 09:57

package net.mcreator.wonderlandmod.world.teleporter;
public class HellWorldDimPortalShape /* failed to load code for net.minecraft.world.level.portal.PortalShape */

I give the code from the error

The solution to this problem…
Wed, 04/19/2023 - 16:38

The solution to this problem and many other problems can be found in our knowledge base: https://mcreator.net/support/knowledgebase Please check the knowledge base before opening a new topic on the issue which has a known fix.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've already looked more…
Thu, 04/20/2023 - 10:35

I've already looked more than once but I haven't found any solution, I've already deleted the cache file, I've tried to reload gradle project and regenerate code and build, I've already tried to uninstall and reinstall Mcreator...

So I don't really know what to do to solve the problem :(

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I just tried but it doesn't…
Sat, 04/22/2023 - 13:25

I just tried but it doesn't work either

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It doesn't matter, I found…
Sun, 04/23/2023 - 21:46

It doesn't matter, I found another solution, a bit more complex, but functional