**1**

# My Formula for Calculating the Amount of Blocks Needed for a House

### #1

Posted 01 February 2013 - 03:23 AM

The formula is as follows: ((l * w) - ((l - 2) * (w - 2)) * (h - i)) + (l * w) * 2

It counts the floor in it too, so make sure to change the l - 2 and w - 2 to l - 1 and w - 1.

Basically, what it's doing is first taking l (the length) and multiplying it by the width to get the floor height. But for this part, we don't want the floor height. We subtract two from the length and width and multiply those two new numbers (It gives us the interior length and width somehow).

Then, we subtract both of the numbers we ended up with and multiply it by h (height) and i (indoor height, because subtracting 2 doesn't work. I could remove it with a small workaround, but it'd make the formula larger and more complicated.) We should end up with the amount of wood we need for the house, minus the roof and floor. To get that, we multiply the length and width, then multiply that by two, to combine our roof and floor block totals. We just add both numbers, and then we have our total!

Hope I haven't hurt your head too much. Note you need to subtract two from the total to create the doorway. Subtract four for double, and subtract more for windows as needed.

Also, the modified one without the indoor height parameter is like this:

((l * w) - ((l - 2) * (w - 2)) * (h - (h - 2))) + (l * w) * 2

It makes you only have to specify the length, width and height for the house.

I'll come up with more formulas soon. Also, if you have another formula, you're welcome to post it here!

### #2

Posted 01 February 2013 - 03:25 AM

Anyways nice formula, sure you put a lot of work into it, but being someone like me, I don't quite get it.

Piggy is now your king. Bow.

### #3

Posted 01 February 2013 - 03:33 AM

So yeah, it pretty much takes the amount of wood for the floor and roof, and each layer of the actual wall, and adds them all up in the "easiest" way possible.

Replace every "l" with a number, every "w" with a number, and every "h" with a number and do the resulting math. Remember, everything surrounded by 3 or 4 parentheses is done first, 3 or 2 is done second, 2 or 1 is done third, and 1 or 0 is done last. Know your Order of Operations, kids.

So try this:

l=5

w=5

h=5

(The standard 5x5x5 house. It has no windows, but I'll subtract 2 for a door.)

((5 * 5) - ((5 - 2) * (5 - 2)) * (5 - (5 - 2))) + (5 * 5) * 2

So yeah, just do that.

### #4

Posted 01 February 2013 - 04:38 AM

A x B = House

Where A = amount of blocks/second placed and B = amount of time until night.

Anyway, good formula, though that is a really boring house. And don't get mad at me for my little joke.

### #5

Posted 01 February 2013 - 06:12 AM

### #6

Posted 01 February 2013 - 06:19 AM

### #7

Posted 01 February 2013 - 10:51 PM

Anyway, I made up this formula originally to tell me how long a rod of length X is, but I've used my knowledge to adapt it to this game. So we can easily just plug in the numbers and find our answer in blocks, and know how many blocks we will need to create a 1x1 pillar of a certain height.

First we have to convert our blocks to meters. We know that a block is 1 cubic meter, and that the length and width are 1 meter, so we can deduce that the height must be 1 meter. So for each block we're going to use, this pillar will be 1 meter taller. This can be expressed as ((blocks x 1 meter)=tallness)

Now this seems relatively simple, but we need to add some safeties to make sure our formula will work in regions as far as 1024(i use this number because it is more computer savvy than 1000) meters from the origin. So now we can use our calculus knowledge to work it out!

This format uses the S as the integral sign and then (lower limit, upper limit)

(((((S(0,height) (2) dx) + 4)/2) - (2 x (sin(pi x (height/(2 x height))))))^2 = (blocks^2))

And there you go!!! Just plug in the numbers to find out how many blocks you need!

### #8

Posted 01 February 2013 - 11:17 PM

SeriouslyGuize, on 01 February 2013 - 10:51 PM, said:

Anyway, I made up this formula originally to tell me how long a rod of length X is, but I've used my knowledge to adapt it to this game. So we can easily just plug in the numbers and find our answer in blocks, and know how many blocks we will need to create a 1x1 pillar of a certain height.

First we have to convert our blocks to meters. We know that a block is 1 cubic meter, and that the length and width are 1 meter, so we can deduce that the height must be 1 meter. So for each block we're going to use, this pillar will be 1 meter taller. This can be expressed as ((blocks x 1 meter)=tallness)

Now this seems relatively simple, but we need to add some safeties to make sure our formula will work in regions as far as 1024(i use this number because it is more computer savvy than 1000) meters from the origin. So now we can use our calculus knowledge to work it out!

This format uses the S as the integral sign and then (lower limit, upper limit)

(((((S(0,height) (2) dx) + 4)/2) - (2 x (sin(pi x (height/(2 x height))))))^2 = (blocks^2))

And there you go!!! Just plug in the numbers to find out how many blocks you need!

An excellent and impressive effort, SeriouslyGuize!

However while yours is no doubt a highly useful and accurate formula, I have to say that I find it to be insufficient for the level of accuracy which I often find myself requiring. You see, I've been playing minecraft since its first alpha release, and have watched with pride as the game grew and developed. When infdev came out, I realized I was going to need a highly sophisticated yet concise formula to calculate the number of blocks required for my rectangular and square structures. What I developed over course of 3 months is the following formula. I know that you all may be unfamiliar with the methods for solving multivariable calculus expressions, and may be wondering why such an expression is necessary, but I assure you, when you are 1024 kilometers from the initial spawn point, the formula quoted above simply will not allow for the level of accuracy that you need. Those familiar with the fundamentals of multivariable calculus will no doubt notice that this formula compensates for the problems stemming from quadratic integral residue in the context of a 3-dimensional manifold.

Remember your order of operations!

### #9

Posted 01 February 2013 - 11:23 PM

Impl0x, on 01 February 2013 - 11:17 PM, said:

However while yours is no doubt a highly useful and accurate formula, I have to say that I find it to be insufficient for the level of accuracy which I often find myself requiring. You see, I've been playing minecraft since its first alpha release, and have watched with pride as the game grew and developed. When infdev came out, I realized I was going to need a highly sophisticated yet concise formula to calculate the number of blocks required for my rectangular and square structures. What I developed over course of 3 months is the following formula. I know that you all may be unfamiliar with the methods for solving multivariable calculus expressions, and may be wondering why such an expression is necessary, but I assure you, when you are 1024 kilometers from the initial spawn point, the formula quoted above simply will not allow for the level of accuracy that you need. Those familiar with the fundamentals of multivariable calculus will no doubt notice that this formula compensates for the problems stemming from quadratic integral residue in the context of a 3-dimensional manifold.

Remember your order of operations!

### #10

Posted 01 February 2013 - 11:35 PM

SeriouslyGuize, on 01 February 2013 - 11:23 PM, said:

ACTUALLY I FOUND YOUR ERROR. IF YOU MULTIPLY YOUR ENTIRE EQUATION BY THE SQUARE ROOT OF TWO, THEN DIVIDE THE RESULT SQUARED BY THE SQUARE ROOT OF FOUR, WE CAN REACH A COMMON GROUND!!!!

### #11

Posted 01 February 2013 - 11:54 PM

SeriouslyGuize, on 01 February 2013 - 11:35 PM, said:

MY WORD!

This explains why I was unable to prevent one of my structures from being bigger on the inside than it was on the outside!!! If only von Nuemann were alive to see us now.

Here is the corrected formula:

### #12

Posted 02 February 2013 - 01:47 AM

### #13

Posted 02 February 2013 - 02:00 AM

### #14

Posted 02 February 2013 - 03:38 AM

### #16

Posted 02 February 2013 - 05:37 AM

### #18

Posted 02 February 2013 - 07:55 AM

Impl0x, on 01 February 2013 - 11:54 PM, said:

This explains why I was unable to prevent one of my structures from being bigger on the inside than it was on the outside!!! If only von Nuemann were alive to see us now.

Here is the corrected formula:

I used this formula, and my building ended up smaller on the outside!? WTF!?!

### #19

Posted 02 February 2013 - 04:42 PM

wilum1, on 02 February 2013 - 07:55 AM, said:

I used this formula, and my building ended up smaller on the outside!? WTF!?!

I remember a time back in the summer of '96 when I went to visit my great uncle in China. I began my venture in February, and ended it in July. I know what you may think, but swimming across the pacific is no easy task. At the start I had only my bathing trunks and as i finished my journey I realized what I had become. I looked around at my new kingdom, my new allies. I had assembled a legion of sea turtles to aid me, and an entire army of whales as military escorts through the harsh Asian waters. As I arrived on the shores of Xai-Sho I was greeted by a choir of monks, all welcoming me. They taught me that my methods were with good intentions, but I had made a small error. I hadn't lathered my body correctly. So they brought me to my uncle, a short and uneventful visit, and then I was on my way home. The monks had rubbed my nipples down with smoked salmon, and sent me through the waters. It only took two weeks to make it home. The juices of the salmon had boosted my capacity for love, and my heart grew by four sizes. As everyone knows, the heart is the muscle that makes you swim faster. Those monks allowed my to get home in time to see my fourth child being born, and they taught me a lesson. Always check your methods for small errors. Impl0x didn't correctly express the formula. The sqrt4 in the denominator needs to be square rooted. It should be to the fourth root.

### #20

Posted 03 February 2013 - 03:47 AM