Topic category: Troubleshooting, bugs, and solutions
I try to make a custom mob and i put in the texture and the model, then it says Your workspace contains mod elements that don't compile properly. i don't know what to do.
here is what console says.
Executing Gradle task: runClient
Build info: MCreator 2020.2.14217, 1.14.4, 64-bit, 8152 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files\Pylo\MCreator\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\jayha\MCreatorWorkspaces\husky\src\main\java\net\mcreator\husky\entity\HuskyEntity.java:178: error: invalid method declaration; return type required public custom_model() {
^
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
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 244714 milliseconds
Probably a problem with your custom model.
What do you use for modeling?
You renamed your model manually for some unknown reason and did this only partially...
Check this: https://www.youtube.com/watch?v=g0MuAEV7zIA&list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei&index=70&t=0s
Are you not supposed to rename models manually? That’s what I do.
You can if you know how to rename class properly :) I recommend renaming in Blockbench in general as most users seem to be breaking code due to only renaming class but not a constructor.
I didn’t know that Blockbench did that, thanks for the tip :)
thankyou!
i fixed it and now it says in the
error:cannot find symbol
i need help it dosnt work even with normal names
IDK
sorry