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

I'm making a gun mod but don't know how to render items as 3D Objects when in hand, I know how to do it like when placing a block in the world. But not for the item in hand. Could someone please explain to me how to do this.

  • Author

But I've already got all this in my MODELGUNTEST file 

[code[
  public ModelRenderer Shape2;
  public ModelRenderer Shape3;
  public ModelRenderer Shape4;
  public ModelRenderer Shape5;
  public ModelRenderer Shape6;
  public ModelRenderer Shape7;
  public ModelRenderer Shape8;
  public ModelRenderer Shape9;
  public ModelRenderer Shape10;
  public ModelRenderer Shape11;
  public ModelRenderer Shape12;
  public ModelRenderer Shape13;
  public ModelRenderer Shape14;
  public ModelRenderer Shape15;
  public ModelRenderer Shape16;
  public ModelRenderer Shape17;
  public ModelRenderer Shape18;
  public ModelRenderer Shape19;
  public ModelRenderer Shape20;
  public ModelRenderer Shape21;
  public ModelRenderer Shape22;
  public ModelRenderer Shape23;
  public ModelRenderer Shape24;
  public ModelRenderer Shape25;
  public ModelRenderer Shape26;
  public ModelRenderer Shape27;
  public ModelRenderer Shape28;
  public ModelRenderer Shape29;
  public ModelRenderer Shape30;
  public ModelRenderer Shape31;
  public ModelRenderer Shape32;
  public ModelRenderer Shape33;
  public ModelRenderer Shape34;
  public ModelRenderer Shape35;
  public ModelRenderer Shape36;
  public ModelRenderer Shape37;
  public ModelRenderer Shape38;
  public ModelRenderer Shape39;
  public ModelRenderer Shape40;
  public ModelRenderer Shape41;
  public ModelRenderer Shape42;
  public ModelRenderer Shape43;
  public ModelRenderer Shape44;
  public ModelRenderer Shape45;
  public ModelRenderer Shape46;
  public ModelRenderer Shape47;
  public ModelRenderer Shape48;
  public ModelRenderer Shape49;
  public ModelRenderer Shape50;
  public ModelRenderer Shape51;
  public ModelRenderer Shape52;
  public ModelRenderer Shape53;
  public ModelRenderer Shape54;
  public ModelRenderer Shape55;
  public ModelRenderer Shape56;
  public ModelRenderer Shape57;
  public ModelRenderer Shape58;
  public ModelRenderer Shape59;
  public ModelRenderer Shape60;
  public ModelRenderer Shape61;
  public ModelRenderer Shape62;
  public ModelRenderer Shape63;
  public ModelRenderer Shape64;
  public ModelRenderer Shape65;
  public ModelRenderer Shape39_1;
  public ModelRenderer Shape39_2;
  public ModelRenderer Shape39_3;
  public ModelRenderer Shape58_1;
  public ModelRenderer Shape1;
  public ModelRenderer Shape66;
  public ModelRenderer Shape21_1;
  public ModelRenderer Shape20_1;
  
  public ModelM1014()
  {
    this.textureWidth = 128;
    this.textureHeight = 64;
    this.Shape53 = new ModelRenderer(this, 0, 54);
    this.Shape53.mirror = true;
    this.Shape53.setRotationPoint(0.7F, 1.0F, -2.2F);
    this.Shape53.addBox(0.0F, 0.0F, 0.0F, 2, 2, 8, 0.0F);
    this.Shape33 = new ModelRenderer(this, 0, 0);
    this.Shape33.mirror = true;
    this.Shape33.setRotationPoint(0.5F, 0.2F, 12.0F);
    this.Shape33.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    setRotateAngle(this.Shape33, 0.7853982F, -0.0F, 0.0F);
    this.Shape46 = new ModelRenderer(this, 0, 0);
    this.Shape46.mirror = true;
    this.Shape46.setRotationPoint(0.7F, 1.0F, -16.0F);
    this.Shape46.addBox(0.0F, 0.0F, 0.0F, 1, 1, 22, 0.0F);
    this.Shape29 = new ModelRenderer(this, 0, 0);
    this.Shape29.mirror = true;
    this.Shape29.setRotationPoint(0.5F, 0.2F, 14.4F);
    this.Shape29.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    setRotateAngle(this.Shape29, 0.7853982F, -0.0F, 0.0F);
    this.Shape6 = new ModelRenderer(this, 0, 0);
    this.Shape6.mirror = true;
    this.Shape6.setRotationPoint(0.0F, 1.0F, 17.0F);
    this.Shape6.addBox(0.0F, 0.0F, 0.0F, 1, 2, 3, 0.0F);
    this.Shape57 = new ModelRenderer(this, 0, 30);
    this.Shape57.mirror = true;
    this.Shape57.setRotationPoint(-1.8F, 1.0F, 10.5F);
    this.Shape57.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    this.Shape56 = new ModelRenderer(this, 0, 0);
    this.Shape56.mirror = true;
    this.Shape56.setRotationPoint(1.2F, 1.8F, -2.5F);
    this.Shape56.addBox(0.0F, 0.0F, 0.0F, 1, 2, 1, 0.0F);
    this.Shape21 = new ModelRenderer(this, 0, 0);
    this.Shape21.mirror = true;
    this.Shape21.setRotationPoint(1.5F, 3.8F, 16.5F);
    this.Shape21.addBox(-0.5F, 0.0F, 0.0F, 1, 0, 2, 0.0F);
    setRotateAngle(this.Shape21, -1.3089969F, -0.08726646F, 0.0F);
    this.Shape25 = new ModelRenderer(this, 0, 0);
    this.Shape25.mirror = true;
    this.Shape25.setRotationPoint(0.5F, 0.2F, 16.8F);
    this.Shape25.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    setRotateAngle(this.Shape25, 0.7853982F, -0.0F, 0.0F);
    this.Shape4 = new ModelRenderer(this, 0, 0);
    this.Shape4.mirror = true;
    this.Shape4.setRotationPoint(0.0F, 0.0F, 6.0F);
    this.Shape4.addBox(0.0F, 0.0F, 0.0F, 1, 1, 14, 0.0F);
    this.Shape52 = new ModelRenderer(this, 0, 54);
    this.Shape52.mirror = true;
    this.Shape52.setRotationPoint(0.3F, 1.0F, -2.2F);
    this.Shape52.addBox(0.0F, 0.0F, 0.0F, 2, 2, 8, 0.0F);
    this.Shape5 = new ModelRenderer(this, 0, 0);
    this.Shape5.mirror = true;
    this.Shape5.setRotationPoint(0.0F, 1.0F, 6.0F);
    this.Shape5.addBox(0.0F, 0.0F, 0.0F, 1, 2, 4, 0.0F);
    this.Shape8 = new ModelRenderer(this, 40, 40);
    this.Shape8.mirror = true;
    this.Shape8.setRotationPoint(0.2F, 1.0F, 10.0F);
    this.Shape8.addBox(0.0F, 0.0F, 0.0F, 1, 1, 7, 0.0F);
    this.Shape63 = new ModelRenderer(this, 0, 0);
    this.Shape63.mirror = true;
    this.Shape63.setRotationPoint(0.5F, 1.5F, 28.0F);
    this.Shape63.addBox(0.0F, 0.0F, 0.0F, 2, 2, 2, 0.0F);
    setRotateAngle(this.Shape63, -0.2443461F, -0.0F, 0.0F);
    this.Shape19 = new ModelRenderer(this, 0, 50);
    this.Shape19.mirror = true;
    this.Shape19.setRotationPoint(0.5F, 3.7F, 20.0F);
    this.Shape19.addBox(0.0F, 0.0F, 0.1F, 2, 2, 2, 0.0F);
    this.Shape17 = new ModelRenderer(this, 0, 0);
    this.Shape17.mirror = true;
    this.Shape17.setRotationPoint(0.0F, 2.0F, 10.0F);
    this.Shape17.addBox(0.0F, 0.0F, 0.0F, 1, 1, 7, 0.0F);
    this.Shape39_2 = new ModelRenderer(this, 0, 0);
    this.Shape39_2.setRotationPoint(2.1F, -1.3F, 18.5F);
    this.Shape39_2.addBox(0.0F, 0.0F, 0.0F, 0, 1, 1, 0.0F);
    setRotateAngle(this.Shape39_2, 0.0F, -0.34906584F, 0.0F);
    this.Shape66 = new ModelRenderer(this, 34, 24);
    this.Shape66.setRotationPoint(2.1F, 1.0F, 7.0F);
    this.Shape66.addBox(0.0F, 0.0F, 0.0F, 1, 1, 11, 0.0F);
    this.Shape36 = new ModelRenderer(this, 0, 0);
    this.Shape36.mirror = true;
    this.Shape36.setRotationPoint(0.5F, 0.2F, 10.2F);
    this.Shape36.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    setRotateAngle(this.Shape36, 0.7853982F, -0.0F, 0.0F);
    this.Shape64 = new ModelRenderer(this, 0, 60);
    this.Shape64.mirror = true;
    this.Shape64.setRotationPoint(0.5F, -0.6F, 22.3F);
    this.Shape64.addBox(0.0F, 0.0F, 0.0F, 2, 1, 3, 0.0F);
    this.Shape31 = new ModelRenderer(this, 0, 0);
    this.Shape31.mirror = true;
    this.Shape31.setRotationPoint(0.5F, 0.2F, 13.2F);
    this.Shape31.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    setRotateAngle(this.Shape31, 0.7853982F, -0.0F, 0.0F);
    this.Shape9 = new ModelRenderer(this, 0, 0);
    this.Shape9.mirror = true;
    this.Shape9.setRotationPoint(0.0F, 0.0F, 20.0F);
    this.Shape9.addBox(0.0F, 0.0F, 0.0F, 3, 2, 2, 0.0F);
    setRotateAngle(this.Shape9, -0.7853982F, -0.0F, 0.0F);
    this.Shape38 = new ModelRenderer(this, 0, 0);
    this.Shape38.mirror = true;
    this.Shape38.setRotationPoint(0.5F, 0.2F, 9.0F);
    this.Shape38.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    setRotateAngle(this.Shape38, 0.7853982F, -0.0F, 0.0F);
    this.Shape55 = new ModelRenderer(this, 0, 0);
    this.Shape55.mirror = true;
    this.Shape55.setRotationPoint(0.8F, 1.8F, -2.5F);
    this.Shape55.addBox(0.0F, 0.0F, 0.0F, 1, 2, 1, 0.0F);
    this.Shape22 = new ModelRenderer(this, 0, 38);
    this.Shape22.mirror = true;
    this.Shape22.setRotationPoint(1.0F, 3.7F, 20.0F);
    this.Shape22.addBox(0.0F, 0.0F, -1.0F, 1, 2, 1, 0.0F);
    setRotateAngle(this.Shape22, -0.54105204F, -0.0F, 0.0F);
    this.Shape59 = new ModelRenderer(this, 0, 0);
    this.Shape59.mirror = true;
    this.Shape59.setRotationPoint(1.0F, 1.5F, 21.8F);
    this.Shape59.addBox(0.0F, 0.0F, 0.0F, 1, 1, 12, 0.0F);
    setRotateAngle(this.Shape59, -0.2443461F, -0.0F, 0.0F);
    this.Shape12 = new ModelRenderer(this, 0, 50);
    this.Shape12.mirror = true;
    this.Shape12.setRotationPoint(0.3F, 4.6F, 21.3F);
    this.Shape12.addBox(0.0F, 0.0F, 0.0F, 1, 6, 2, 0.0F);
    setRotateAngle(this.Shape12, 0.40142572F, -0.0F, 0.0F);
    this.Shape3 = new ModelRenderer(this, 0, 0);
    this.Shape3.mirror = true;
    this.Shape3.setRotationPoint(0.0F, 3.0F, 6.0F);
    this.Shape3.addBox(0.0F, 0.0F, 0.0F, 1, 1, 14, 0.0F);
    this.Shape27 = new ModelRenderer(this, 0, 0);
    this.Shape27.mirror = true;
    this.Shape27.setRotationPoint(0.5F, 0.2F, 15.6F);
    this.Shape27.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    setRotateAngle(this.Shape27, 0.7853982F, -0.0F, 0.0F);
    this.Shape32 = new ModelRenderer(this, 0, 0);
    this.Shape32.mirror = true;
    this.Shape32.setRotationPoint(0.5F, 0.2F, 12.6F);
    this.Shape32.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    setRotateAngle(this.Shape32, 0.7853982F, -0.0F, 0.0F);
    this.Shape41 = new ModelRenderer(this, 0, 0);
    this.Shape41.mirror = true;
    this.Shape41.setRotationPoint(0.5F, 0.7F, -16.0F);
    this.Shape41.addBox(0.0F, 0.0F, 0.0F, 2, 1, 22, 0.0F);
    this.Shape42 = new ModelRenderer(this, 0, 0);
    this.Shape42.mirror = true;
    this.Shape42.setRotationPoint(1.0F, 0.2F, -16.0F);
    this.Shape42.addBox(0.0F, 0.0F, 0.0F, 1, 2, 22, 0.0F);
    this.Shape16 = new ModelRenderer(this, 0, 50);
    this.Shape16.mirror = true;
    this.Shape16.setRotationPoint(0.5F, 9.7F, 22.4F);
    this.Shape16.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    setRotateAngle(this.Shape16, 1.2915436F, -0.0F, 0.0F);
    this.Shape21_1 = new ModelRenderer(this, 0, 0);
    this.Shape21_1.setRotationPoint(1.5F, 3.8F, 16.5F);
    this.Shape21_1.addBox(-0.5F, 0.0F, 0.0F, 1, 0, 2, 0.0F);
    setRotateAngle(this.Shape21_1, -1.3089969F, 0.08726646F, 0.0F);
    this.Shape54 = new ModelRenderer(this, 0, 55);
    this.Shape54.mirror = true;
    this.Shape54.setRotationPoint(0.5F, 3.0F, -2.2F);
    this.Shape54.addBox(0.0F, 0.0F, 0.0F, 2, 1, 8, 0.0F);
    this.Shape7 = new ModelRenderer(this, 0, 0);
    this.Shape7.mirror = true;
    this.Shape7.setRotationPoint(0.0F, 1.4F, 14.0F);
    this.Shape7.addBox(0.0F, 0.0F, 0.0F, 1, 1, 4, 0.0F);
    this.Shape14 = new ModelRenderer(this, 0, 50);
    this.Shape14.mirror = true;
    this.Shape14.setRotationPoint(0.5F, 10.0F, 22.0F);
    this.Shape14.addBox(0.0F, 0.0F, 0.0F, 2, 1, 4, 0.0F);
    setRotateAngle(this.Shape14, 0.40142572F, -0.0F, 0.0F);
    this.Shape50 = new ModelRenderer(this, 40, 40);
    this.Shape50.mirror = true;
    this.Shape50.setRotationPoint(1.0F, 2.7F, -15.5F);
    this.Shape50.addBox(0.0F, 0.0F, 0.0F, 1, 1, 2, 0.0F);
    this.Shape65 = new ModelRenderer(this, 0, 50);
    this.Shape65.mirror = true;
    this.Shape65.setRotationPoint(0.5F, -0.5F, 22.6F);
    this.Shape65.addBox(0.0F, 0.0F, 0.0F, 2, 1, 3, 0.0F);
    setRotateAngle(this.Shape65, -0.32463124F, -0.0F, 0.0F);
    this.Shape44 = new ModelRenderer(this, 0, 0);
    this.Shape44.mirror = true;
    this.Shape44.setRotationPoint(1.3F, 0.4F, -16.0F);
    this.Shape44.addBox(0.0F, 0.0F, 0.0F, 1, 1, 22, 0.0F);
    this.Shape43 = new ModelRenderer(this, 0, 0);
    this.Shape43.mirror = true;
    this.Shape43.setRotationPoint(1.3F, 1.0F, -16.0F);
    this.Shape43.addBox(0.0F, 0.0F, 0.0F, 1, 1, 22, 0.0F);
    this.Shape26 = new ModelRenderer(this, 0, 0);
    this.Shape26.mirror = true;
    this.Shape26.setRotationPoint(0.5F, 0.2F, 16.2F);
    this.Shape26.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    setRotateAngle(this.Shape26, 0.7853982F, -0.0F, 0.0F);
    this.Shape2 = new ModelRenderer(this, 0, 0);
    this.Shape2.mirror = true;
    this.Shape2.setRotationPoint(0.0F, 3.0F, 20.0F);
    this.Shape2.addBox(0.0F, 0.0F, 0.0F, 3, 2, 4, 0.0F);
    this.Shape49 = new ModelRenderer(this, 40, 40);
    this.Shape49.mirror = true;
    this.Shape49.setRotationPoint(0.8F, 2.5F, -15.5F);
    this.Shape49.addBox(0.0F, 0.0F, 0.0F, 1, 1, 2, 0.0F);
    this.Shape51 = new ModelRenderer(this, 0, 0);
    this.Shape51.mirror = true;
    this.Shape51.setRotationPoint(1.0F, 2.0F, -15.0F);
    this.Shape51.addBox(0.0F, 0.0F, 0.0F, 1, 1, 1, 0.0F);
    this.Shape61 = new ModelRenderer(this, 0, 50);
    this.Shape61.mirror = true;
    this.Shape61.setRotationPoint(0.5F, -0.6F, 25.3F);
    this.Shape61.addBox(0.0F, 0.0F, 0.0F, 2, 2, 5, 0.0F);
    setRotateAngle(this.Shape61, -0.12217305F, -0.0F, 0.0F);
    this.Shape23 = new ModelRenderer(this, 0, 0);
    this.Shape23.mirror = true;
    this.Shape23.setRotationPoint(0.5F, -0.7F, 18.5F);
    this.Shape23.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    setRotateAngle(this.Shape23, -0.17453292F, -0.0F, 0.0F);
    this.Shape62 = new ModelRenderer(this, 0, 50);
    this.Shape62.mirror = true;
    this.Shape62.setRotationPoint(0.5F, 0.0F, 30.0F);
    this.Shape62.addBox(0.0F, 0.0F, 0.0F, 2, 2, 4, 0.0F);
    this.Shape15 = new ModelRenderer(this, 0, 50);
    this.Shape15.mirror = true;
    this.Shape15.setRotationPoint(0.5F, 10.0F, 22.0F);
    this.Shape15.addBox(0.0F, 0.0F, 0.0F, 2, 1, 2, 0.0F);
    setRotateAngle(this.Shape15, 0.80285144F, -0.0F, 0.0F);
    this.Shape58 = new ModelRenderer(this, 0, 0);
    this.Shape58.setRotationPoint(1.5F, -1.0F, -14.5F);
    this.Shape58.addBox(0.0F, 0.0F, 0.0F, 0, 2, 2, 0.0F);
    setRotateAngle(this.Shape58, -0.7853982F, -0.13962634F, 0.0F);
    this.Shape20_1 = new ModelRenderer(this, 0, 0);
    this.Shape20_1.setRotationPoint(1.5F, 5.7F, 17.0F);
    this.Shape20_1.addBox(-0.5F, 0.0F, 0.0F, 1, 0, 4, 0.0F);
    setRotateAngle(this.Shape20_1, 0.017453292F, -0.0F, 0.08726646F);
    this.Shape13 = new ModelRenderer(this, 0, 50);
    this.Shape13.mirror = true;
    this.Shape13.setRotationPoint(1.7F, 4.6F, 21.3F);
    this.Shape13.addBox(0.0F, 0.0F, 0.0F, 1, 6, 2, 0.0F);
    setRotateAngle(this.Shape13, 0.40142572F, -0.0F, 0.0F);
    this.Shape39 = new ModelRenderer(this, 0, 0);
    this.Shape39.setRotationPoint(1.8F, -1.3F, 18.5F);
    this.Shape39.addBox(0.0F, 0.0F, 0.0F, 0, 1, 1, 0.0F);
    setRotateAngle(this.Shape39, 0.0F, 0.13962634F, 0.0F);
    this.Shape1 = new ModelRenderer(this, 0, 0);
    this.Shape1.setRotationPoint(1.0F, 0.0F, 6.0F);
    this.Shape1.addBox(0.0F, 0.0F, 0.0F, 2, 4, 14, 0.0F);
    this.Shape47 = new ModelRenderer(this, 0, 0);
    this.Shape47.mirror = true;
    this.Shape47.setRotationPoint(1.0F, 2.5F, -16.0F);
    this.Shape47.addBox(0.0F, 0.0F, 0.0F, 1, 1, 22, 0.0F);
    this.Shape11 = new ModelRenderer(this, 0, 50);
    this.Shape11.mirror = true;
    this.Shape11.setRotationPoint(0.5F, 5.0F, 21.0F);
    this.Shape11.addBox(0.0F, 0.0F, 0.0F, 2, 6, 3, 0.0F);
    setRotateAngle(this.Shape11, 0.40142572F, -0.0F, 0.0F);
    this.Shape30 = new ModelRenderer(this, 0, 0);
    this.Shape30.mirror = true;
    this.Shape30.setRotationPoint(0.5F, 0.2F, 13.8F);
    this.Shape30.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    setRotateAngle(this.Shape30, 0.7853982F, -0.0F, 0.0F);
    this.Shape45 = new ModelRenderer(this, 0, 0);
    this.Shape45.mirror = true;
    this.Shape45.setRotationPoint(0.7F, 0.4F, -16.0F);
    this.Shape45.addBox(0.0F, 0.0F, 0.0F, 1, 1, 22, 0.0F);
    this.Shape39_3 = new ModelRenderer(this, 0, 0);
    this.Shape39_3.setRotationPoint(1.2F, -1.3F, 18.5F);
    this.Shape39_3.addBox(0.0F, 0.0F, 0.0F, 0, 1, 1, 0.0F);
    setRotateAngle(this.Shape39_3, 0.0F, -0.13962634F, 0.0F);
    this.Shape18 = new ModelRenderer(this, 0, 50);
    this.Shape18.mirror = true;
    this.Shape18.setRotationPoint(0.5F, 5.0F, 20.0F);
    this.Shape18.addBox(0.0F, 0.0F, 0.0F, 2, 2, 2, 0.0F);
    setRotateAngle(this.Shape18, 0.9250245F, -0.0F, 0.0F);
    this.Shape20 = new ModelRenderer(this, 0, 0);
    this.Shape20.setRotationPoint(1.5F, 5.7F, 17.0F);
    this.Shape20.addBox(-0.5F, 0.0F, 0.0F, 1, 0, 4, 0.0F);
    setRotateAngle(this.Shape20, 0.017453292F, -0.0F, -0.08726646F);
    this.Shape10 = new ModelRenderer(this, 0, 0);
    this.Shape10.mirror = true;
    this.Shape10.setRotationPoint(0.0F, 0.8F, 20.7F);
    this.Shape10.addBox(0.0F, 0.0F, 0.0F, 3, 3, 4, 0.0F);
    setRotateAngle(this.Shape10, -0.57595867F, -0.0F, 0.0F);
    this.Shape34 = new ModelRenderer(this, 0, 0);
    this.Shape34.mirror = true;
    this.Shape34.setRotationPoint(0.5F, 0.2F, 11.4F);
    this.Shape34.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    setRotateAngle(this.Shape34, 0.7853982F, -0.0F, 0.0F);
    this.Shape24 = new ModelRenderer(this, 0, 0);
    this.Shape24.mirror = true;
    this.Shape24.setRotationPoint(0.7F, -0.3F, 9.1F);
    this.Shape24.addBox(0.0F, 0.0F, 0.0F, 2, 1, 9, 0.0F);
    this.Shape58_1 = new ModelRenderer(this, 0, 0);
    this.Shape58_1.setRotationPoint(1.5F, -1.0F, -14.5F);
    this.Shape58_1.addBox(0.0F, 0.0F, 0.0F, 0, 2, 2, 0.0F);
    setRotateAngle(this.Shape58_1, -0.7853982F, 0.13962634F, 0.0F);
    this.Shape28 = new ModelRenderer(this, 0, 0);
    this.Shape28.mirror = true;
    this.Shape28.setRotationPoint(0.5F, 0.2F, 15.0F);
    this.Shape28.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    setRotateAngle(this.Shape28, 0.7853982F, -0.0F, 0.0F);
    this.Shape40 = new ModelRenderer(this, 0, 0);
    this.Shape40.mirror = true;
    this.Shape40.setRotationPoint(0.3F, -0.3F, 9.1F);
    this.Shape40.addBox(0.0F, 0.0F, 0.0F, 2, 1, 9, 0.0F);
    this.Shape48 = new ModelRenderer(this, 40, 40);
    this.Shape48.mirror = true;
    this.Shape48.setRotationPoint(1.2F, 2.5F, -15.5F);
    this.Shape48.addBox(0.0F, 0.0F, 0.0F, 1, 1, 2, 0.0F);
    this.Shape60 = new ModelRenderer(this, 0, 50);
    this.Shape60.mirror = true;
    this.Shape60.setRotationPoint(0.5F, 0.0F, 34.0F);
    this.Shape60.addBox(0.0F, 0.0F, 0.0F, 2, 6, 1, 0.0F);
    setRotateAngle(this.Shape60, -0.17453292F, -0.0F, 0.0F);
    this.Shape39_1 = new ModelRenderer(this, 0, 0);
    this.Shape39_1.setRotationPoint(0.9F, -1.3F, 18.5F);
    this.Shape39_1.addBox(0.0F, 0.0F, 0.0F, 0, 1, 1, 0.0F);
    setRotateAngle(this.Shape39_1, 0.0F, 0.34906584F, 0.0F);
    this.Shape35 = new ModelRenderer(this, 0, 0);
    this.Shape35.mirror = true;
    this.Shape35.setRotationPoint(0.5F, 0.2F, 10.8F);
    this.Shape35.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    setRotateAngle(this.Shape35, 0.7853982F, -0.0F, 0.0F);
    this.Shape37 = new ModelRenderer(this, 0, 0);
    this.Shape37.mirror = true;
    this.Shape37.setRotationPoint(0.5F, 0.2F, 9.6F);
    this.Shape37.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F);
    setRotateAngle(this.Shape37, 0.7853982F, -0.0F, 0.0F);
  }
  
  public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
  {
    this.Shape53.render(f5);
    this.Shape33.render(f5);
    this.Shape46.render(f5);
    this.Shape29.render(f5);
    this.Shape6.render(f5);
    this.Shape57.render(f5);
    this.Shape56.render(f5);
    this.Shape21.render(f5);
    this.Shape25.render(f5);
    this.Shape4.render(f5);
    this.Shape52.render(f5);
    this.Shape5.render(f5);
    this.Shape8.render(f5);
    this.Shape63.render(f5);
    this.Shape19.render(f5);
    this.Shape17.render(f5);
    this.Shape39_2.render(f5);
    this.Shape66.render(f5);
    this.Shape36.render(f5);
    this.Shape64.render(f5);
    this.Shape31.render(f5);
    this.Shape9.render(f5);
    this.Shape38.render(f5);
    this.Shape55.render(f5);
    this.Shape22.render(f5);
    this.Shape59.render(f5);
    this.Shape12.render(f5);
    this.Shape3.render(f5);
    this.Shape27.render(f5);
    this.Shape32.render(f5);
    this.Shape41.render(f5);
    this.Shape42.render(f5);
    this.Shape16.render(f5);
    this.Shape21_1.render(f5);
    this.Shape54.render(f5);
    this.Shape7.render(f5);
    this.Shape14.render(f5);
    this.Shape50.render(f5);
    this.Shape65.render(f5);
    this.Shape44.render(f5);
    this.Shape43.render(f5);
    this.Shape26.render(f5);
    this.Shape2.render(f5);
    this.Shape49.render(f5);
    this.Shape51.render(f5);
    this.Shape61.render(f5);
    this.Shape23.render(f5);
    this.Shape62.render(f5);
    this.Shape15.render(f5);
    this.Shape58.render(f5);
    this.Shape20_1.render(f5);
    this.Shape13.render(f5);
    this.Shape39.render(f5);
    this.Shape1.render(f5);
    this.Shape47.render(f5);
    this.Shape11.render(f5);
    this.Shape30.render(f5);
    this.Shape45.render(f5);
    this.Shape39_3.render(f5);
    this.Shape18.render(f5);
    this.Shape20.render(f5);
    this.Shape10.render(f5);
    this.Shape34.render(f5);
    this.Shape24.render(f5);
    this.Shape58_1.render(f5);
    this.Shape28.render(f5);
    this.Shape40.render(f5);
    this.Shape48.render(f5);
    this.Shape60.render(f5);
    this.Shape39_1.render(f5);
    this.Shape35.render(f5);
    this.Shape37.render(f5);
  }

 

  • Author

Export your model as a b3d file, the forge github has an example on how to load it.

Could you please link me it i  cant find it.
  • Author

{
    "parent": "builtin/generated",
"defaults": {
    "textures": {
        "layer0": "zombiesurvival:items/m16"
    },
 "model": "zombiesurvival:M16.b3d"
},
    "display": {
        "thirdperson": {
            "rotation": [ -90, 0, 0 ],
            "translation": [ 0, 1, -3 ],
            "scale": [ 0.55, 0.55, 0.55 ]
        },
        "firstperson": {
            "rotation": [ 0, -135, 25 ],
            "translation": [ 0, 4, 2 ],
            "scale": [ 1.7, 1.7, 1.7 ]
        }
    }
}

Would this JSON File work. Also if you see where the model is where exactly would i place it? if i keep the same location in the JSON file

  • Author

So Both the JSON and the B3D File go in the same folder. There is no tutorial for items on the github btw. But in game my item renders as Black and Pink.

 

My ClientProxy Looks like this

private static ModelResourceLocation modelLocation = new ModelResourceLocation("zombiesurvival:M16", "inventory");
    
public void registerRenderers()
{
	 ModelLoader.setCustomModelResourceLocation(ItemM16.instance, 0, modelLocation);
}

What am I doing wrong and yes i registered the proxy in the main class.

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.