Compile Error for Java Entity

Started by Dragon God Dra… on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Compile Error for Java Entity

Hi, I'm getting a compiling error for my model. I looked at other pages relating to the issue but I'm either not tech savvy enough to figure out if we had similar issues or myself and others have the same issues but different pathways in order to fix them. So far I'm seeing that the compile task failed and that I have an invalid method declaration but I don't know how to fix either.

Executing Gradle task: runClient
Build info: MCreator 2020.5.47520, forge-1.15.2, 64-bit, 3981 MB, Windows 10, JVM 1.8.0_265, JAVA_HOME: C:\Users\caleb\Downloads\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\Draconvius\Downloads\Mcreator\Workspaces\Elemental_Buddies\src\main\java\net\mcreator\elementalbuddies\entity\EarthElementalLevel1Entity.java:186: error: invalid method declaration; return type required public EarthElementalLevel() {
^
1 error
> 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 9s
1 actionable task: 1 executed
BUILD FAILED

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah, when I was first…
Fri, 01/22/2021 - 15:55

Yeah, when I was first trying to import the model from Blockbench it said the name wasn't working, so I went into the code and changed the name of the model. Was I not supposed to do that?

If you don't know how Java…
Sat, 01/23/2021 - 10:17

If you don't know how Java works, no.

Instead, set the name properly in the bb.

I strongly suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei