Troubles with mob model using Blockbench

Started by LordGael22 on

Topic category: Troubleshooting, bugs, and solutions

Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Troubles with mob model using Blockbench
Wed, 03/06/2019 - 11:00 (edited)

         Hello fellow moddevs here I need your help , as Techne is not longer available I've decided to use blockbench as it is recommended on many discussions but ! There is a problem , I was doing the model and when done I've extract it under .java file (the only file mcreator reconize for mobs model) and after doing the mob on mcreator using the model.java the is a run task error , the recompilation fail because of the model . If someone can help me you are welcome !

 

 

     Also I'm using the last versions of mcreator and blockbench .

Edited by LordGael22 on Wed, 03/06/2019 - 11:00
Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok I'll do it .  
Wed, 03/06/2019 - 12:15

Ok I'll do it .

 

Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
//Made with Blockbench /…
Wed, 03/06/2019 - 12:16
//Made with Blockbench
//Paste this code into your mod.

import org.lwjgl.opengl.GL11;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelBox;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.entity.Entity;

public class skeletalthieve extends ModelBase {
	private final ModelRenderer jambe droite;
	private final ModelRenderer jambe gauche;
	private final ModelRenderer torse;
	private final ModelRenderer tete;
	private final ModelRenderer bras droit;
	private final ModelRenderer bras gauche;
	private final ModelRenderer epee;

	public skeletalthieve() {
		textureWidth = 64;
		textureHeight = 64;

		jambe droite = new ModelRenderer(this);
		jambe droite.setRotationPoint(0.0F, 24.0F, 0.0F);
		jambe droite.cubeList.add(new ModelBox(jambe droite, 0, 16, 1.0F, -12.0F, -1.0F, 2, 12, 2, 0.0F, false));

		jambe gauche = new ModelRenderer(this);
		jambe gauche.setRotationPoint(0.0F, 24.0F, 0.0F);
		jambe gauche.cubeList.add(new ModelBox(jambe gauche, 0, 16, -3.0F, -12.0F, -1.0F, 2, 12, 2, 0.0F, false));

		torse = new ModelRenderer(this);
		torse.setRotationPoint(0.0F, 24.0F, 0.0F);
		torse.cubeList.add(new ModelBox(torse, 16, 16, -4.0F, -24.0F, -2.0F, 8, 12, 4, 0.0F, false));

		tete = new ModelRenderer(this);
		tete.setRotationPoint(0.0F, 24.0F, 0.0F);
		tete.cubeList.add(new ModelBox(tete, 0, 0, -4.0F, -32.0F, -4.0F, 8, 8, 8, 0.0F, false));

		bras droit = new ModelRenderer(this);
		bras droit.setRotationPoint(0.0F, 24.0F, 0.0F);
		bras droit.cubeList.add(new ModelBox(bras droit, 40, 16, 4.0F, -24.0F, -1.0F, 2, 12, 2, 0.0F, false));

		bras gauche = new ModelRenderer(this);
		bras gauche.setRotationPoint(0.0F, 24.0F, 0.0F);
		bras gauche.cubeList.add(new ModelBox(bras gauche, 40, 16, -6.0F, -24.0F, -1.0F, 2, 12, 2, 0.0F, false));

		epee = new ModelRenderer(this);
		epee.setRotationPoint(0.0F, 24.0F, 0.0F);
		epee.cubeList.add(new ModelBox(epee, 0, 0, 4.0F, -12.0F, -11.0F, 1, 1, 26, 0.0F, false));
	}

	@Override
	public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
		jambe droite.render(f5);
		jambe gauche.render(f5);
		torse.render(f5);
		tete.render(f5);
		bras droit.render(f5);
		bras gauche.render(f5);
		epee.render(f5);
	}
	public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
		modelRenderer.rotateAngleX = x;
		modelRenderer.rotateAngleY = y;
		modelRenderer.rotateAngleZ = z;
	}
}

 

 

Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here is the model code  
Wed, 03/06/2019 - 12:16

Here is the model code

 

Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Code error :     C:\Pylo…
Wed, 03/06/2019 - 12:22

Code error :

 

 

C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:101: error: ';' expected
    private final ModelRenderer jambe droite;
                                     ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:101: error: <identifier> expected
    private final ModelRenderer jambe droite;
                                            ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:102: error: ';' expected
    private final ModelRenderer jambe gauche;
                                     ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:102: error: <identifier> expected
    private final ModelRenderer jambe gauche;
                                            ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:105: error: ';' expected
    private final ModelRenderer bras droit;
                                    ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:105: error: <identifier> expected
    private final ModelRenderer bras droit;
                                          ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:106: error: ';' expected
    private final ModelRenderer bras gauche;
                                    ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:106: error: <identifier> expected
    private final ModelRenderer bras gauche;
                                           ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:112: error: ';' expected
        jambe droite.setRotationPoint(0.0F, 24.0F, 0.0F);
                    ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:113: error: ';' expected
        jambe droite.cubeList.add(new ModelBox(jambe droite, 0, 16, 1.0F, -12.0F, -1.0F, 2, 12, 2, 0.0F, false));
                    ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:113: error: ')' expected
        jambe droite.cubeList.add(new ModelBox(jambe droite, 0, 16, 1.0F, -12.0F, -1.0F, 2, 12, 2, 0.0F, false));
                                                    ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:113: error: ';' expected
        jambe droite.cubeList.add(new ModelBox(jambe droite, 0, 16, 1.0F, -12.0F, -1.0F, 2, 12, 2, 0.0F, false));
                                                           ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:113: error: not a statement
        jambe droite.cubeList.add(new ModelBox(jambe droite, 0, 16, 1.0F, -12.0F, -1.0F, 2, 12, 2, 0.0F, false));
                                                             ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:113: error: ';' expected
        jambe droite.cubeList.add(new ModelBox(jambe droite, 0, 16, 1.0F, -12.0F, -1.0F, 2, 12, 2, 0.0F, false));
                                                              ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:115: error: ';' expected
        jambe gauche.setRotationPoint(0.0F, 24.0F, 0.0F);
                    ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:116: error: ';' expected
        jambe gauche.cubeList.add(new ModelBox(jambe gauche, 0, 16, -3.0F, -12.0F, -1.0F, 2, 12, 2, 0.0F, false));
                    ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:116: error: ')' expected
        jambe gauche.cubeList.add(new ModelBox(jambe gauche, 0, 16, -3.0F, -12.0F, -1.0F, 2, 12, 2, 0.0F, false));
                                                    ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:116: error: ';' expected
        jambe gauche.cubeList.add(new ModelBox(jambe gauche, 0, 16, -3.0F, -12.0F, -1.0F, 2, 12, 2, 0.0F, false));
                                                           ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:116: error: not a statement
        jambe gauche.cubeList.add(new ModelBox(jambe gauche, 0, 16, -3.0F, -12.0F, -1.0F, 2, 12, 2, 0.0F, false));
                                                             ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:116: error: ';' expected
        jambe gauche.cubeList.add(new ModelBox(jambe gauche, 0, 16, -3.0F, -12.0F, -1.0F, 2, 12, 2, 0.0F, false));
                                                              ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:124: error: ';' expected
        bras droit.setRotationPoint(0.0F, 24.0F, 0.0F);
                  ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:125: error: ';' expected
        bras droit.cubeList.add(new ModelBox(bras droit, 40, 16, 4.0F, -24.0F, -1.0F, 2, 12, 2, 0.0F, false));
                  ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:125: error: ')' expected
        bras droit.cubeList.add(new ModelBox(bras droit, 40, 16, 4.0F, -24.0F, -1.0F, 2, 12, 2, 0.0F, false));
                                                 ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:125: error: ';' expected
        bras droit.cubeList.add(new ModelBox(bras droit, 40, 16, 4.0F, -24.0F, -1.0F, 2, 12, 2, 0.0F, false));
                                                       ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:125: error: not a statement
        bras droit.cubeList.add(new ModelBox(bras droit, 40, 16, 4.0F, -24.0F, -1.0F, 2, 12, 2, 0.0F, false));
                                                         ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:125: error: ';' expected
        bras droit.cubeList.add(new ModelBox(bras droit, 40, 16, 4.0F, -24.0F, -1.0F, 2, 12, 2, 0.0F, false));
                                                           ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:127: error: ';' expected
        bras gauche.setRotationPoint(0.0F, 24.0F, 0.0F);
                   ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:128: error: ';' expected
        bras gauche.cubeList.add(new ModelBox(bras gauche, 40, 16, -6.0F, -24.0F, -1.0F, 2, 12, 2, 0.0F, false));
                   ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:128: error: ')' expected
        bras gauche.cubeList.add(new ModelBox(bras gauche, 40, 16, -6.0F, -24.0F, -1.0F, 2, 12, 2, 0.0F, false));
                                                  ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:128: error: ';' expected
        bras gauche.cubeList.add(new ModelBox(bras gauche, 40, 16, -6.0F, -24.0F, -1.0F, 2, 12, 2, 0.0F, false));
                                                         ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:128: error: not a statement
        bras gauche.cubeList.add(new ModelBox(bras gauche, 40, 16, -6.0F, -24.0F, -1.0F, 2, 12, 2, 0.0F, false));
                                                           ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:128: error: ';' expected
        bras gauche.cubeList.add(new ModelBox(bras gauche, 40, 16, -6.0F, -24.0F, -1.0F, 2, 12, 2, 0.0F, false));
                                                             ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:135: error: ';' expected
        jambe droite.render(f5);
                    ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:136: error: ';' expected
        jambe gauche.render(f5);
                    ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:139: error: ';' expected
        bras droit.render(f5);
                  ^
C:\Pylo\MCreator182\forge\build\sources\main\java\mod\mcreator\mcreator_dz.java:140: error: ';' expected
        bras gauche.render(f5);
                   ^
36 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

BUILD FAILED in 27s
 

Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ah ok , thanks I will try it…
Wed, 03/06/2019 - 12:25

Ah ok , thanks I will try it , gtg for now , I'll say later today if it work . Thanks you very much for the help .

Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Finnaly I've done it quickly…
Wed, 03/06/2019 - 12:34

Finnaly I've done it quickly and it is working fine now ! Thanks you again !

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have a similar problem but…
Sun, 06/07/2020 - 15:07

I have a similar problem but I have no space and it doesn't chew