Topic category: Help with MCreator software
what's wrong it doesn't work?
// Made with Blockbench 3.5.1
// Exported for Minecraft version 1.14
// Paste this class into your mod and generate all required imports
public class foo extends ModelBase {
private final RendererModel body;
private final RendererModel propellers;
private final RendererModel lower;
private final RendererModel upper;
private final RendererModel head;
public foo() {
textureWidth = 128;
textureHeight = 128;
body = new RendererModel(this);
body.setRotationPoint(0.0F, 24.0F, 0.0F);
propellers = new RendererModel(this);
propellers.setRotationPoint(0.0F, -9.0F, 0.0F);
body.addChild(propellers);
lower = new RendererModel(this);
lower.setRotationPoint(0.0F, -1.0F, 0.0F);
propellers.addChild(lower);
lower.cubeList.add(new ModelBox(lower, 0, 24, -1.0F, -7.0F, -1.0F, 2, 7, 2, 0.0F, false));
lower.cubeList.add(new ModelBox(lower, 36, 3, -8.0F, -1.0F, -1.0F, 16, 1, 2, 0.0F, false));
lower.cubeList.add(new ModelBox(lower, 20, 25, -1.0F, -1.0F, -8.0F, 2, 1, 16, 0.0F, false));
upper = new RendererModel(this);
upper.setRotationPoint(0.0F, -1.0F, 0.0F);
propellers.addChild(upper);
upper.cubeList.add(new ModelBox(upper, 0, 0, -1.0F, -26.0F, -1.0F, 2, 7, 2, 0.0F, false));
upper.cubeList.add(new ModelBox(upper, 36, 0, -8.0F, -26.0F, -1.0F, 16, 1, 2, 0.0F, false));
upper.cubeList.add(new ModelBox(upper, 0, 24, -1.0F, -26.0F, -8.0F, 2, 1, 16, 0.0F, false));
head = new RendererModel(this);
head.setRotationPoint(0.0F, 0.0F, 0.0F);
body.addChild(head);
head.cubeList.add(new ModelBox(head, 0, 0, -6.0F, -29.0F, -6.0F, 12, 12, 12, 0.0F, false));
}
@Override
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
body.render(f5);
propellers.render(f5);
lower.render(f5);
upper.render(f5);
head.render(f5);
}
public void setRotationAngle(RendererModel modelRenderer, float x, float y, float z) {
modelRenderer.rotateAngleX = x;
modelRenderer.rotateAngleY = y;
modelRenderer.rotateAngleZ = z;
}
}
This is a problem that many other people had.
It is a glitch with the that version of Blockbench.
Remove the top 3 lines (the ones that begin with //) and it should be fine
I tried that, but then the animation thing doesn’t work. And when I use it, it says “could not compile”
Than sorry, can’t help you
https://mcreator.net/tracker/issue/59347