Started by
Retlaw21
on
Topic category: Help with Minecraft modding (Java Edition)
I am making custom models now it is saying that the java file failed to compile. help plz.
Also check out kinnar rpg mod.
Topic category: Help with Minecraft modding (Java Edition)
I am making custom models now it is saying that the java file failed to compile. help plz.
Also check out kinnar rpg mod.
Well you should provide some more info than that...
https://mcreator.net/support/knowledgebase check this page
Not any of those. Lol.
then open a support ticket on the issue tracker with a workspace
Cleared cache and fixed. Run kinnar rn
I'm happy you got it fixed :)
C:\Users\Walter\MCreatorWorkspaces\kinnar_rpg_minecraft_mod\build\sources\main\java\net\mcreator\kinnar_rpg_minecraft_mod\MCreatorEttin.java:182: 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
BUILD FAILED in 3m 31s
still wont work uhh….
//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 custom_modelettin extends ModelBase {
private final ModelRenderer bb_main;
public custom_model() {
textureWidth = 16;
textureHeight = 16;
bb_main = new ModelRenderer(this);
bb_main.setRotationPoint(0.0F, 24.0F, 0.0F);
bb_main.cubeList.add(new ModelBox(bb_main, 0, 0, -5.0F, -4.0F, 6.0F, 2, 4, 2, 0.0F, false));
bb_main.cubeList.add(new ModelBox(bb_main, 0, 0, -5.0F, -4.0F, 0.0F, 2, 4, 2, 0.0F, false));
bb_main.cubeList.add(new ModelBox(bb_main, 0, 0, -6.0F, -6.0F, -1.0F, 4, 2, 10, 0.0F, false));
bb_main.cubeList.add(new ModelBox(bb_main, 0, 0, -6.0F, -8.0F, 0.0F, 4, 2, 8, 0.0F, false));
bb_main.cubeList.add(new ModelBox(bb_main, 0, 0, -6.0F, -10.0F, -1.0F, 4, 2, 10, 0.0F, false));
bb_main.cubeList.add(new ModelBox(bb_main, 0, 0, -5.0F, -10.0F, -3.0F, 2, 5, 2, 0.0F, false));
bb_main.cubeList.add(new ModelBox(bb_main, 0, 0, -5.0F, -10.0F, 9.0F, 2, 5, 2, 0.0F, false));
bb_main.cubeList.add(new ModelBox(bb_main, 0, 0, -5.0F, -13.0F, 0.0F, 2, 3, 3, 0.0F, false));
bb_main.cubeList.add(new ModelBox(bb_main, 0, 0, -5.0F, -13.0F, 5.0F, 2, 3, 3, 0.0F, false));
}
@Override
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
bb_main.render(f5);
}
public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
modelRenderer.rotateAngleX = x;
modelRenderer.rotateAngleY = y;
modelRenderer.rotateAngleZ = z;
}
}
java stuff