"<modelpart<>.addBox();" is used to add boxes to the model, the first the numbers being the x, y, and z coordinates of the box. The next 3 numbers are how big that box will be, and the next should just be 0.
(P.S. don't pay attention to the TextureOffset, I have never seen a difference when it is changed.)
Ex:
var bipedBody = model.getPart("body").clear().setTextureOffset(16, 16);
bipedBody.addBox(0,0,0,1,6,1);
//Adds a box to 0, 0, 0 that is one thick for the x coord, 6 high for the y coord, and 1 thick for the z coord.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I need help with these:
1. modelpart.addbo
2. setTextureOffset
Is there any good modder wanna help me?
I'm asking this because i want to make a new mod called jackhammer mod...
Click them::
(P.S. don't pay attention to the TextureOffset, I have never seen a difference when it is changed.)
Ex:
var bipedBody = model.getPart("body").clear().setTextureOffset(16, 16);
bipedBody.addBox(0,0,0,1,6,1);
//Adds a box to 0, 0, 0 that is one thick for the x coord, 6 high for the y coord, and 1 thick for the z coord.