Model Issue

Status
Resolved
Type
Product/platform
Not applicable
Priority
Normal
Issue description

I am making a Sandworm Boss. Here is the log whenever I save my mod element

Executing gradle task: build
Build info: MCreator 2020.1.05419, 1.12.2, 64-bit, 16326 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
:deobfCompileDummyTask
:deobfProvidedDummyTask
:sourceApiJava UP-TO-DATE
:compileApiJava NO-SOURCE
:processApiResources NO-SOURCE
:apiClasses UP-TO-DATE
:sourceMainJava
C:\Users\james\MCreatorWorkspaces\nc_necroncraft\build\sources\main\java\net\mcreator\nc_necroncraft\MCreatorDesertDevil.java:178: error: invalid method declaration; return type required
      public custom_model() {
             ^
1 error
: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
BUILD FAILED in 1s
5 actionable tasks: 4 executed, 1 up-to-date
BUILD FAILED
Task completed in 4187 milliseconds

Attachment Size
The Custom Model3.89 KB 3.89 KB

Issue comments

Set the model name in BlockBench before exporting, not in code if you do not know Java.

public class custom_model2 extends ModelBase {

and here

    public custom_model() {

Based on this, you do not know Java so at leas use BlockBench properly.

I 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



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.