Code (Java):
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
public class siege extends ModelBase
{
//fields
ModelRenderer Shape1;
ModelRenderer Shape2;
ModelRenderer Shape3;
ModelRenderer Shape4;
ModelRenderer Shape5;
ModelRenderer Shape6;
ModelRenderer Shape7;
ModelRenderer Shape8;
ModelRenderer Shape22;
ModelRenderer Shape9;
ModelRenderer Shape10;
ModelRenderer Shape11;
ModelRenderer Shape12;
ModelRenderer Shape13;
ModelRenderer Shape14;
ModelRenderer Shape15;
ModelRenderer Shape16;
ModelRenderer Shape17;
ModelRenderer Shape18;
ModelRenderer Shape19;
ModelRenderer Shape20;
ModelRenderer Shape21;
public siege()
{
textureWidth = 64;
textureHeight = 64;
Shape1 = new ModelRenderer(this, 0, 0);
Shape1.addBox(0F, 0F, 0F, 11, 3, 11);
Shape1.setRotationPoint(-5F, 4F, -5F);
Shape1.setTextureSize(64, 64);
Shape1.mirror = true;
setRotation(Shape1, 0F, 0F, 0F);
Shape2 = new ModelRenderer(this, 5, 0);
Shape2.addBox(0F, 0F, 0F, 9, 3, 1);
Shape2.setRotationPoint(-4F, 4F, -6F);
Shape2.setTextureSize(64, 64);
Shape2.mirror = true;
setRotation(Shape2, 0F, 0F, 0F);
Shape3 = new ModelRenderer(this, 5, 7);
Shape3.addBox(0F, 0F, 0F, 5, 3, 1);
Shape3.setRotationPoint(-2F, 4F, -7F);
Shape3.setTextureSize(64, 64);
Shape3.mirror = true;
setRotation(Shape3, 0F, 0F, 0F);
Shape4 = new ModelRenderer(this, 5, 0);
Shape4.addBox(0F, 0F, 0F, 9, 3, 1);
Shape4.setRotationPoint(-4F, 4F, 6F);
Shape4.setTextureSize(64, 64);
Shape4.mirror = true;
setRotation(Shape4, 0F, 0F, 0F);
Shape5 = new ModelRenderer(this, 5, 7);
Shape5.addBox(0F, 0F, 0F, 5, 3, 1);
Shape5.setRotationPoint(-2F, 4F, 7F);
Shape5.setTextureSize(64, 64);
Shape5.mirror = true;
setRotation(Shape5, 0F, 0F, 0F);
Shape6 = new ModelRenderer(this, 0, 1);
Shape6.addBox(0F, 0F, 0F, 1, 3, 9);
Shape6.setRotationPoint(6F, 4F, -4F);
Shape6.setTextureSize(64, 64);
Shape6.mirror = true;
setRotation(Shape6, 0F, 0F, 0F);
Shape7 = new ModelRenderer(this, 0, 3);
Shape7.addBox(0F, 0F, 0F, 1, 3, 5);
Shape7.setRotationPoint(7F, 4F, -2F);
Shape7.setTextureSize(64, 64);
Shape7.mirror = true;
setRotation(Shape7, 0F, 0F, 0F);
Shape8 = new ModelRenderer(this, 0, 1);
Shape8.addBox(0F, 0F, 0F, 1, 3, 9);
Shape8.setRotationPoint(-6F, 4F, -4F);
Shape8.setTextureSize(64, 64);
Shape8.mirror = true;
setRotation(Shape8, 0F, 0F, 0F);
Shape22 = new ModelRenderer(this, 0, 3);
Shape22.addBox(0F, 0F, 0F, 1, 3, 5);
Shape22.setRotationPoint(-7F, 4F, -2F);
Shape22.setTextureSize(64, 64);
Shape22.mirror = true;
setRotation(Shape22, 0F, 0F, 0F);
Shape9 = new ModelRenderer(this, 16, 34);
Shape9.addBox(0F, 0F, 0F, 9, 2, 9);
Shape9.setRotationPoint(-4F, 3F, -4F);
Shape9.setTextureSize(64, 64);
Shape9.mirror = true;
setRotation(Shape9, 0F, 0F, 0F);
Shape10 = new ModelRenderer(this, 0, 36);
Shape10.addBox(0F, 0F, 0F, 5, 2, 1);
Shape10.setRotationPoint(-2F, 3F, -5F);
Shape10.setTextureSize(64, 64);
Shape10.mirror = true;
setRotation(Shape10, 0F, 0F, 0F);
Shape11 = new ModelRenderer(this, 0, 36);
Shape11.addBox(0F, 0F, 0F, 5, 2, 1);
Shape11.setRotationPoint(-2F, 3F, 5F);
Shape11.setTextureSize(64, 64);
Shape11.mirror = true;
setRotation(Shape11, 0F, 0F, 0F);
Shape12 = new ModelRenderer(this, 0, 47);
Shape12.addBox(0F, 0F, 0F, 1, 2, 5);
Shape12.setRotationPoint(5F, 3F, -2F);
Shape12.setTextureSize(64, 64);
Shape12.mirror = true;
setRotation(Shape12, 0F, 0F, 0F);
Shape13 = new ModelRenderer(this, 0, 47);
Shape13.addBox(0F, 0F, 0F, 1, 2, 5);
Shape13.setRotationPoint(-5F, 3F, -2F);
Shape13.setTextureSize(64, 64);
Shape13.mirror = true;
setRotation(Shape13, 0F, 0F, 0F);
Shape14 = new ModelRenderer(this, 0, 0);
Shape14.addBox(0F, 0F, 0F, 1, 17, 1);
Shape14.setRotationPoint(-5F, 7F, 5F);
Shape14.setTextureSize(64, 64);
Shape14.mirror = true;
setRotation(Shape14, 0F, 0F, 0F);
Shape15 = new ModelRenderer(this, 0, 0);
Shape15.addBox(0F, 0F, 0F, 1, 17, 1);
Shape15.setRotationPoint(5F, 7F, 5F);
Shape15.setTextureSize(64, 64);
Shape15.mirror = true;
setRotation(Shape15, 0F, 0F, 0F);
Shape16 = new ModelRenderer(this, 0, 0);
Shape16.addBox(0F, 0F, 0F, 1, 17, 1);
Shape16.setRotationPoint(5F, 7F, -5F);
Shape16.setTextureSize(64, 64);
Shape16.mirror = true;
setRotation(Shape16, 0F, 0F, 0F);
Shape17 = new ModelRenderer(this, 0, 0);
Shape17.addBox(0F, 0F, 0F, 1, 17, 1);
Shape17.setRotationPoint(-5F, 7F, -5F);
Shape17.setTextureSize(64, 64);
Shape17.mirror = true;
setRotation(Shape17, 0F, 0F, 0F);
Shape18 = new ModelRenderer(this, 0, 16);
Shape18.addBox(0F, 0F, 0F, 9, 1, 1);
Shape18.setRotationPoint(-4F, 13F, 5F);
Shape18.setTextureSize(64, 64);
Shape18.mirror = true;
setRotation(Shape18, 0F, 0F, 0F);
Shape19 = new ModelRenderer(this, 0, 16);
Shape19.addBox(0F, 0F, 0F, 9, 1, 1);
Shape19.setRotationPoint(-4F, 14F, -4F);
Shape19.setTextureSize(64, 64);
Shape19.mirror = true;
setRotation(Shape19, 3.141593F, 0F, 0F);
Shape20 = new ModelRenderer(this, 0, 16);
Shape20.addBox(0F, 0F, 0F, 9, 1, 1);
Shape20.setRotationPoint(-4.025F, 14F, 5F);
Shape20.setTextureSize(64, 64);
Shape20.mirror = true;
setRotation(Shape20, 3.141593F, 1.570796F, 0F);
Shape21 = new ModelRenderer(this, 0, 16);
Shape21.addBox(0F, 0F, 0F, 9, 1, 1);
Shape21.setRotationPoint(4.975F, 13F, 5F);
Shape21.setTextureSize(64, 64);
Shape21.mirror = true;
setRotation(Shape21, 0F, 1.570796F, 0F);
}
public void render(float f)
{
Shape1.render(f);
Shape2.render(f);
Shape3.render(f);
Shape4.render(f);
Shape5.render(f);
Shape6.render(f);
Shape7.render(f);
Shape8.render(f);
Shape22.render(f);
Shape9.render(f);
Shape10.render(f);
Shape11.render(f);
Shape12.render(f);
Shape13.render(f);
Shape14.render(f);
Shape15.render(f);
Shape16.render(f);
Shape17.render(f);
Shape18.render(f);
Shape19.render(f);
Shape20.render(f);
Shape21.render(f);
}
private void setRotation(ModelRenderer model, float x, float y, float z)
{
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
}
Les textures :