Dimensions not working for 1.14.4

Status
Resolved
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

I can't, for the life of me, get my custom dimension to compile. It says there is an error with this mod element. I've tried several different combinations of blocks for the primary, secondary, and tertiary blocks for the dimension. Nothing works. I even added a custom biome to it. It doesn't work and this is really annoying me. Any help would be appreciated. I've also tried updating to the 2020.2 from 2020.1 and it still gives me the same error.

Attachment Size
file with a dimension that won't compile.23.7 KB 23.7 KB

Issue comments

Now MCreator is displaying white so I can't copy the error log from the console. I'm gonna figure it out quick sorry for taking so long.

Executing Gradle task: build
Build info: MCreator 2020.2.13314, 1.14.4, 64-bit, 16275 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Users\Sawyer\Desktop\Top Secret\MCreator\MCreator20202\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.14.4-28.2.3_mapped_snapshot_20190719-1.14.3
> Task :compileJava FAILED
C:\Users\Sawyer\MCreatorWorkspaces\lamia\src\main\java\net\pmc\lamia\world\dimension\WhywontthisworkDimension.java:214: error: '{' expected
   public static class Size /* failed to load code for net.minecraft.block.NetherPortalBlock */
                           ^
C:\Users\Sawyer\MCreatorWorkspaces\lamia\src\main\java\net\pmc\lamia\world\dimension\WhywontthisworkDimension.java:236: error: '{' expected
   public static class PortalPosition /* failed to load code for net.minecraft.world.Teleporter */
                                     ^
C:\Users\Sawyer\MCreatorWorkspaces\lamia\src\main\java\net\pmc\lamia\world\dimension\WhywontthisworkDimension.java:279: error: illegal start of type
   }
   ^
C:\Users\Sawyer\MCreatorWorkspaces\lamia\src\main\java\net\pmc\lamia\world\dimension\WhywontthisworkDimension.java:279: error: ';' expected
   }
    ^
C:\Users\Sawyer\MCreatorWorkspaces\lamia\src\main\java\net\pmc\lamia\world\dimension\WhywontthisworkDimension.java:338: error: illegal start of type
}
^
C:\Users\Sawyer\MCreatorWorkspaces\lamia\src\main\java\net\pmc\lamia\world\dimension\WhywontthisworkDimension.java:338: error: ';' expected
}
 ^
C:\Users\Sawyer\MCreatorWorkspaces\lamia\src\main\java\net\pmc\lamia\world\dimension\WhywontthisworkDimension.java:339: error: reached end of file while parsing
}
 ^
C:\Users\Sawyer\MCreatorWorkspaces\lamia\src\main\java\net\pmc\lamia\world\dimension\WhywontthisworkDimension.java:340: error: reached end of file while parsing
8 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.9/userguide/command_line_interface.html#sec:c…
BUILD FAILED in 3s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 3793 milliseconds

I've also found this in the code:

@Override /* failed to load code for net.minecraft.world.biome.provider.OverworldBiomeProvider */

Or try switching MC version. Or delete gradle caches folder (check knowledge base how), and regenerate and build.

Try reimporting gradle project too.

Another user confirmed this to work:

Delete the entire <user home>/.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 -> Reload gradle project and then Build & run -> Regenerate code and build.

I tried this and it didn't work... I'm getting the same error, the console tab shows almost the same output, except the fact that the numbers are different. I don't know how that worked for another user, but it's not working for me. I did exactly what you said. The download took about 32 mins. So the .gradle folder definitely got deleted. I'm not sure why this is happening. I've updated from 2020.1 to 2020.2 to see if that worked but it didn't. I've filled out every section and it still doesn't seem to work. I've tried different world generation options and filling out the corresponding filler blocks depending on the world generation. Nothing seems to work...

Could you tell me which files do you have in this folder?

<user dir>\.mcreator\gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge


Did you do this part too?

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 -> Reload gradle project and then Build & run -> Regenerate code and build.

this.targetSelector.addGoal(2, new HurtByTargetGoal(this));

 

that is the line of code that the console says is invalid or whatever. this is for the entity problem I am having as well.

I deleted everything MCreator related, installed using the installer file version instead of the zip file. It didn't work. Completely re-downloaded everything MCreator, and nothing worked... I'm getting the same errors.

Try opening the first file on this list with ZIP opener and check if it is a valid file: https://ibb.co/3rBR6BN

At this point I am out of ideas, if you reinstalled all and still does not work, it can only be one thing I can think of - something blocking MCreator from working properly, either AV or user permissions.

the same problem, reinstalled mcreator, did not help

Reinstalling will not help, do this:

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 -> Reload gradle project and then Build & run -> Regenerate code and build.

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.

In general, I tried everything, everything that is written here and the same error pops up to me

Hay mr developer man.
Fix your gradle setup,
It's been unstable for years,
And honestly, It's getting really damn annoying, risking the complete Distruction of my on-going 7000 element mod every damn time Mcreator decides to explode on itself.
Such as, this exact issue.
Oh and, while you are at it.
Bring back 1.12.2 support 

Bring back 1.12.2 support 

https://github.com/MCreator/Generator-Forge-1.12.2 ?

Fix your gradle setup,

I did not invent Gradle so I can't fix Gradle. If you think there are problems with Gradle, consider reporting bugs to Gradle devs.

Or open a ticket and include log so I might be able to tip you where the problem is (in 99% cases it is some computer specific, gradle works for most of the users just fine).

 damn time Mcreator decides to explode on itself.

Bug report with crash logs, details, please. I can't help at all with this bug description.



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.