My mob model doesn't work

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

I spent over an hour on making a mob called an Ent. When I was finished with the mob, MCreator told me there was an issue with the entity. I looked at the console and realized the problem was a part of my model. Here's what it said:

Executing Gradle task: build
Build info: MCreator 2020.3.22116, forge-1.15.2, 64-bit, 16314 MB, Windows 10, JVM 1.8.0_252, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1
> Task :compileJava FAILED
(the file): error: cannot find symbol setTextureOffset("Piece1.Head", 0, 96);
^
symbol: method setTextureOffset(String,int,int)
location: class ModelEnt
(the file): error: cannot find symbol setTextureOffset("Piece1.Leaves", 57, 58);
^
symbol: method setTextureOffset(String,int,int)
location: class ModelEnt
(the file): error: no suitable constructor found for ModelRenderer(ModelEnt,String) Piece1 = new ModelRenderer(this, "Piece1");
^
constructor ModelRenderer.ModelRenderer(Model) is not applicable
(actual and formal argument lists differ in length)
constructor ModelRenderer.ModelRenderer(Model,int,int) is not applicable
(actual and formal argument lists differ in length)
constructor ModelRenderer.ModelRenderer(int,int,int,int) is not applicable
(actual and formal argument lists differ in length)
(the file): error: no suitable method found for addBox(String,float,float,float,int,int,int) Piece1.addBox("Head", 0F, 0F, 0F, 16, 16, 16);
^
method ModelRenderer.addBox(float,float,float,float,float,float,boolean) is not applicable
(argument mismatch; String cannot be converted to float)
method ModelRenderer.addBox(float,float,float,float,float,float,float) is not applicable
(argument mismatch; String cannot be converted to float)
(the file): error: no suitable method found for addBox(String,float,float,float,int,int,int) Piece1.addBox("Leaves", -1F, -1F, 1F, 18, 16, 16);
^
method ModelRenderer.addBox(float,float,float,float,float,float,boolean) is not applicable
(argument mismatch; String cannot be converted to float)
method ModelRenderer.addBox(float,float,float,float,float,float,float) is not applicable
(argument mismatch; String cannot be converted to float)
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
5 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.10.3/userguide/command_line_interface.html#se…
BUILD FAILED in 1s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 9403 milliseconds

 

The model was made with Techne and for the head, I wanted two blocks for a piece, the head and the leaves. I'm pretty sure this is what caused the problem, but I don't know why. I've seen plenty of other MCreator mods that did this and nothing went wrong.

Attachment Size
This is the workspace24.25 KB 24.25 KB

Issue comments

Make sure to use modeler that makes models for same version of MC as your workspace.

MCreator has no control over models, it only imports them so this is up to modeler.



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.