Click here for some basic mob models!

Started by 9678Dash on Tue, 08/13/2019 - 02:38

Topic category: Help with MCreator modding

Last seen on 03:50, 6. Dec 2019
Joined Mar 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Click here for some basic mob models!
Tue, 08/13/2019 - 02:38

I guess you could say this is not what this forum is meant for, because i am not asking for help.

But, i have created some models that you can use for your mod! such as:

bear, fox, enderman, cat, wolf, big wolf, and skeleton!

You could consider them all incomplete, because the bear cannot get on its hind legs, the cats and wolfs cannot sit, the fox doesnt have any special animations, and the enderman and skeletons cannot wear anything, or hold anything, or have an attack animation. but unfortunately, i do not know how to make this happen. If i make anymore models, i will post them here as a google drive link.

bear, fox, enderman, cat, wolf. big wolf, and skeleton: https://drive.google.com/file/d/1JRpjMnD3s20uNzp3LiZNtZP8dClCsbxG/view

Last seen on 03:50, 6. Dec 2019
Joined Mar 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Hey, i was wondering if…
Wed, 08/14/2019 - 05:07

Hey, i was wondering if there is a better place for me to put this?

Last seen on 00:36, 16. Nov 2019
Joined Sep 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
there is an issue with the…
Wed, 09/25/2019 - 03:53

there is an issue with the enderman model. I dont know much about java but after looking into it I think there may have been an issue since you declare right arm left arm but also rightarm_1 but do not have a left leg. but later in the code you refrence left leg. was rightarm_1 supposed to be leftleg? I couldnt fix it after trying for a bit so im still not entirely sure why it wont compile in mcreator. any updates on this would be great @9678Dash. 

Last seen on 00:36, 16. Nov 2019
Joined Sep 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
nevermind, I was able to fix…
Wed, 09/25/2019 - 04:13

nevermind, I was able to fix it. idk why it wasnt working earlier but i changed rightarm_1 to leftleg everywhere that it occured and it is fixed. enderman now works perfectly! just for anyone else who may find this here is the entirety of the working enderman file.

 

package net.minecraft.src;

import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;

/**
 * ModelEnderman - Either Mojang or a mod author
 * Created using Tabula 7.0.0
 */
public class ModelEnderman extends ModelBase {
    public ModelRenderer rightarm;
    public ModelRenderer rightleg;
    public ModelRenderer torso;
    public ModelRenderer leftarm;
    public ModelRenderer leftleg;
    public ModelRenderer head;
    public ModelRenderer mask;

    public ModelEnderman() {
        this.textureWidth = 64;
        this.textureHeight = 32;
        this.leftarm = new ModelRenderer(this, 56, 0);
        this.leftarm.mirror = true;
        this.leftarm.setRotationPoint(5.0F, -12.0F, 0.0F);
        this.leftarm.addBox(-1.0F, -2.0F, -1.0F, 2, 30, 2, 0.0F);
        this.rightleg = new ModelRenderer(this, 56, 0);
        this.rightleg.setRotationPoint(-2.0F, -5.0F, 0.0F);
        this.rightleg.addBox(-1.0F, 0.0F, -1.0F, 2, 30, 2, 0.0F);
        this.torso = new ModelRenderer(this, 32, 16);
        this.torso.setRotationPoint(0.0F, -14.0F, -0.0F);
        this.torso.addBox(-4.0F, 0.0F, -2.0F, 8, 12, 4, 0.0F);
        this.head = new ModelRenderer(this, 0, 16);
        this.head.setRotationPoint(0.0F, -13.0F, -0.0F);
        this.head.addBox(-4.0F, -8.0F, -4.0F, 8, 8, 8, -0.5F);
        this.mask = new ModelRenderer(this, 0, 0);
        this.mask.setRotationPoint(0.0F, 0.0F, -0.0F);
        this.mask.addBox(-4.0F, -8.0F, -4.0F, 8, 8, 8, 0.0F);
        this.rightarm = new ModelRenderer(this, 56, 0);
        this.rightarm.setRotationPoint(-5.0F, -12.0F, 0.0F);
        this.rightarm.addBox(-1.0F, -2.0F, -1.0F, 2, 30, 2, 0.0F);
        this.leftleg = new ModelRenderer(this, 56, 0);
        this.leftleg.mirror = true;
        this.leftleg.setRotationPoint(2.0F, -5.0F, 0.0F);
        this.leftleg.addBox(-1.0F, 0.0F, -1.0F, 2, 30, 2, 0.0F);
        this.head.addChild(this.mask);
    }

    @Override
    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { 
        this.leftarm.render(f5);
        this.rightleg.render(f5);
        this.torso.render(f5);
        this.head.render(f5);
        this.rightarm.render(f5);
        this.leftleg.render(f5);
    }

    /**
     * This is a helper function from Tabula to set the rotation of model parts
     */
    public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {
        modelRenderer.rotateAngleX = x;
        modelRenderer.rotateAngleY = y;
        modelRenderer.rotateAngleZ = z;
    }
    
        public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
{
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
this.head.rotateAngleY = f3 / (180F / (float)Math.PI);
this.head.rotateAngleX = f4 / (180F / (float)Math.PI);
this.leftarm.rotateAngleX = MathHelper.cos(f * 1.0F) * -1.0F * f1;
this.rightarm.rotateAngleX = MathHelper.cos(f * 1.0F) * 1.0F * f1;
this.leftleg.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 2.0F * f1 * 0.5F;
this.rightleg.rotateAngleX = MathHelper.cos(f * 0.6662F) * 2.0F * f1 * 0.5F;
}
    
}
 

Last seen on 03:50, 6. Dec 2019
Joined Mar 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Sorry that i didnt see this…
Thu, 09/26/2019 - 05:18

Sorry that i didnt see this yet, but thank you for fixing it!