Format name: Java Code
Used by: Minecraft TileEntitySpecialRenderer/EntityRenderer
Specs: http://pastebin.com/TcwMYWuz
Where:
Code: Select all
ModelRenderer Shape1;// Shape1 = Unique name of Cube Element
Shape1 = new ModelRenderer(this, <UvStart>, <UvStop>);
Shape1.addBox(-1F, 0F, 0F, 1, 1, 2);// the 6 Numbers are The Position ( first 3 in X,Y,Z) and Size where size cannot be a floating point number (Google translator :P)
Shape1.setRotationPoint(-4F, 15.5F, 11F);// Rotation Origin
Shape1.setTextureSize(textureWidth , textureHeight );// values will be "replaced" automaticly by above defined ( textureWidth = 64; & textureHeight = 64;)
Shape1.mirror = true;// Also no Idea what thats for
setRotation(Shape1, 1.745329F, 0F, 0F);// Rotation of the Element at X,Y,Z Axis no limitation to 90 Degrees steps (1 = 180° I think might also be 360°)
textureWidth = 64;
textureHeight = 64;
are required as this can only use 1 Texture
Format description:
Welp went maybe to far above
* Credit to the guy down below for this explanation