Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Another problem in create entity model in techne everything i fine but when i add mob in game his hends is in body i can't fix it

 

Model class

 

 

// Date: 6/17/2015 11:50:11 AM

// Template version 1.1

// Java generated by Techne

// Keep in mind that you still need to fill in some blanks

// - ZeuX

 

 

 

 

 

 

package com.TheTroop.legendrymod.Model;

 

import net.minecraft.client.model.ModelBase;

import net.minecraft.client.model.ModelRenderer;

import net.minecraft.entity.Entity;

import net.minecraft.util.MathHelper;

 

public class ModelWiggen extends ModelBase

{

  //fields

    ModelRenderer Tani;

    ModelRenderer Tavi;

    ModelRenderer Rqa1;

    ModelRenderer Rqa2;

    ModelRenderer RqaShua1;

    ModelRenderer RqaBolo1;

    ModelRenderer Rqashua2;

    ModelRenderer RqaBolo2;

    ModelRenderer Xeli1;

    ModelRenderer Xeli2;

    ModelRenderer Mxari1;

    ModelRenderer Mxari2;

    ModelRenderer Fexi1;

    ModelRenderer Fexi2;

 

 

  public ModelWiggen()

  {

    textureWidth = 64;

    textureHeight = 32;

   

      Tani = new ModelRenderer(this, 27, 11);

      Tani.addBox(0.4666667F, 0F, 0F, 13, 15, 6);

      Tani.setRotationPoint(-7F, -5F, 0F);

      Tani.setTextureSize(64, 32);

      Tani.mirror = true;

      setRotation(Tani, 0F, 0F, 0F);

      Tavi = new ModelRenderer(this, 0, 0);

      Tavi.addBox(-4F, -10F, -2F, 8, 8, 6);

      Tavi.setRotationPoint(0F, -3F, 0F);

      Tavi.setTextureSize(64, 32);

      Tavi.mirror = true;

      setRotation(Tavi, 0F, 0F, 0F);

      Rqa1 = new ModelRenderer(this, 0, 23);

      Rqa1.addBox(0F, 0F, 0F, 1, 7, 2);

      Rqa1.setRotationPoint(-7F, -15F, -1F);

      Rqa1.setTextureSize(64, 32);

      Rqa1.mirror = true;

      setRotation(Rqa1, 0F, 0F, -0.5759587F);

      Rqa2 = new ModelRenderer(this, 0, 23);

      Rqa2.addBox(0F, 0F, 0F, 1, 7, 2);

      Rqa2.setRotationPoint(6F, -15F, -1F);

      Rqa2.setTextureSize(64, 32);

      Rqa2.mirror = true;

      setRotation(Rqa2, 0F, 0F, 0.4886922F);

      RqaShua1 = new ModelRenderer(this, 0, 24);

      RqaShua1.addBox(0F, 0F, 0F, 1, 5, 2);

      RqaShua1.setRotationPoint(-3F, -18F, -1F);

      RqaShua1.setTextureSize(64, 32);

      RqaShua1.mirror = true;

      setRotation(RqaShua1, 0F, 0F, 0.9075712F);

      RqaBolo1 = new ModelRenderer(this, 0, 21);

      RqaBolo1.addBox(0F, 0F, 0F, 2, 1, 2);

      RqaBolo1.setRotationPoint(-3F, -18F, -1F);

      RqaBolo1.setTextureSize(64, 32);

      RqaBolo1.mirror = true;

      setRotation(RqaBolo1, 0F, 0F, 0F);

      Rqashua2 = new ModelRenderer(this, 0, 20);

      Rqashua2.addBox(0F, 0F, 0F, 1, 5, 2);

      Rqashua2.setRotationPoint(2F, -17F, -1F);

      Rqashua2.setTextureSize(64, 32);

      Rqashua2.mirror = true;

      setRotation(Rqashua2, 0F, 0F, -0.9075712F);

      RqaBolo2 = new ModelRenderer(this, 0, 18);

      RqaBolo2.addBox(0F, 1F, 0F, 2, 1, 2);

      RqaBolo2.setRotationPoint(1F, -19F, -1F);

      RqaBolo2.setTextureSize(64, 32);

      RqaBolo2.mirror = true;

      setRotation(RqaBolo2, 0F, 0F, 0F);

      Xeli1 = new ModelRenderer(this, 0, 16);

      Xeli1.addBox(0F, 0F, 0F, 4, 12, 4);

      Xeli1.setRotationPoint(6F, -1F, 1F);

      Xeli1.setTextureSize(64, 32);

      Xeli1.mirror = true;

      setRotation(Xeli1, 0F, 0F, 0F);

      Xeli2 = new ModelRenderer(this, 0, 16);

      Xeli2.addBox(0F, 0F, 0F, 4, 12, 4);

      Xeli2.setRotationPoint(-10F, -1F, 1F);

      Xeli2.setTextureSize(64, 32);

      Xeli2.mirror = true;

      setRotation(Xeli2, 0F, 0F, 0F);

      Mxari1 = new ModelRenderer(this, 42, 21);

      Mxari1.addBox(0F, 0F, 0F, 5, 4, 6);

      Mxari1.setRotationPoint(-11F, -5F, 0F);

      Mxari1.setTextureSize(64, 32);

      Mxari1.mirror = true;

      setRotation(Mxari1, 0F, 0F, 0F);

      Mxari2 = new ModelRenderer(this, 42, 21);

      Mxari2.addBox(0F, 0F, 0F, 5, 4, 6);

      Mxari2.setRotationPoint(6F, -5F, 0F);

      Mxari2.setTextureSize(64, 32);

      Mxari2.mirror = true;

      setRotation(Mxari2, 0F, 0F, 0F);

      Fexi1 = new ModelRenderer(this, 42, 0);

      Fexi1.addBox(0F, 0F, 0F, 5, 14, 6);

      Fexi1.setRotationPoint(0F, 10F, 0F);

      Fexi1.setTextureSize(64, 32);

      Fexi1.mirror = true;

      setRotation(Fexi1, 0F, 0F, 0F);

      Fexi2 = new ModelRenderer(this, 42, 0);

      Fexi2.addBox(0F, 0F, 0F, 5, 14, 6);

      Fexi2.setRotationPoint(-5F, 10F, 0F);

      Fexi2.setTextureSize(64, 32);

      Fexi2.mirror = true;

      setRotation(Fexi2, 0F, 0F, 0F);

      Tavi.addChild(Rqa1);

      Tavi.addChild(Rqa2);

      Tavi.addChild(RqaShua1);

      Tavi.addChild(Rqashua2);

      Tavi.addChild(RqaBolo1);

      Tavi.addChild(RqaBolo2);

      Mxari1.addChild(Xeli1);

      Mxari2.addChild(Xeli2);

  }

 

  public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)

  {

    super.render(entity, f, f1, f2, f3, f4, f5);

    setRotationAngles(f, f1, f2, f3, f4, f5, entity);

    Tani.render(f5);

    Tavi.render(f5);

    Mxari1.render(f5);

    Mxari2.render(f5);

    Fexi1.render(f5);

    Fexi2.render(f5);

  }

 

  private void setRotation(ModelRenderer model, float x, float y, float z)

  {

    model.rotateAngleX = x;

    model.rotateAngleY = y;

    model.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.Tavi.rotateAngleY = f3 / (180F / (float)Math.PI);

  this.Tavi.rotateAngleX = f4 / (180F / (float)Math.PI);

  this.Mxari1.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 2.0F * f1 * 0.5F;

  this.Mxari2.rotateAngleX = MathHelper.cos(f * 0.6662F) * 2.0F * f1 * 0.5F;

  this.Mxari1.rotateAngleZ = 0.0F;

  this.Mxari2.rotateAngleZ = 0.0F;

  this.Fexi1.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1;

  this.Fexi2.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 1.4F * f1;

  this.Fexi1.rotateAngleY = 0.0F;

  this.Fexi2.rotateAngleY = 0.0F;

 

}

}

 

 

 

 

 

 

Xeli1= hend 1

xeli2 = hend 2

When using

addChild

you have to set the child rotation points to the head's rotation points.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

  • Author

When using

addChild

you have to set the child rotation points to the head's rotation points.

and how can i do this? (i am noob in cooding)

 

ModelRenderer head = ...

ModelRenderer horn = ...

horn.setRotationPoint(head.rotationPointX,head.rotationPointY,head.rotationPointZ);

 

Also, please stop sending me personal messages when you can ask here on the forums (others can use this information too).

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.