Ettin Wont Compile

Started by Retlaw21 on

Topic category: Help with modding (Java Edition)

Last seen on 17:46, 20. May 2020
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ettin Wont Compile

I am making custom models now it is saying that the java file failed to compile. help plz.

Also check out kinnar rpg mod.

Last seen on 17:46, 20. May 2020
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Not any of those. Lol.
Fri, 02/21/2020 - 14:08

Not any of those. Lol.

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
then open a support ticket…
Fri, 02/21/2020 - 15:21

then open a support ticket on the issue tracker with a workspace

Last seen on 17:46, 20. May 2020
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Cleared cache and fixed. Run…
Fri, 02/21/2020 - 23:33

Cleared cache and fixed. Run kinnar rn

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm happy you got it fixed :)
Sat, 02/22/2020 - 01:41

I'm happy you got it fixed :)

Last seen on 17:46, 20. May 2020
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
C:\Users\Walter…
Mon, 02/24/2020 - 16:51

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….

Last seen on 17:46, 20. May 2020
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
//Made with Blockbench /…
Mon, 02/24/2020 - 16:53

//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