In my city we only have a small place for our house but we can build under it as much as we want so I want to build a place to grow wheat and trees. What's the best layout in terms of light (torches preferred) and water for growing them quickly?
You need a light level of 9 or higher for wheat to grow. Saplings will need a light level of about 10 specifically above them, so one torch (which provides 14 light) nearby will suffice. There is a small disagreement on the wiki for what light level trees need, but 10 is the safe number. Beyond that light does not affect the rate at which they grow.
For wheat to grow quickly, however, you need to place it on hydrated farmland blocks, which meet the following constraints (from the Minecraft wiki):
Farmland blocks are made by tilling a dirt block with a hoe.
Other constraints are that wheat will only grow on farmland blocks and trees will only grow on dirt/grass blocks. Also, trees need at least 5 blocks of open air above them to grow at all, but leaving 14 blocks will allow almost all large trees to grow (source). Space around the sapling is not required but will result in more leaves and possibly wood, so I recommend leaving an open 5x5 area that is also 14 blocks tall and centered on the sapling in order to maximize each tree's potential wood output.
Here is a good example of an underground tree farm.
|show 4 more comments|
This is what my underground tree farms usually look like. I'm sure there are more efficient ways, but this is pretty good as far as the area/volume you need to excavate to the amount of trees that will grow.
It's just started to sprout, but if you leave it long enough you'll have solid walls of wood.
I've used the 80% efficiency tree farm from the wiki and it works very well. . Mine is above ground but the same results should work below ground.
I did place a canopy above the farm leaving an 8 block high space. This allows me to chop all the wood from ground level. After a couple minecraft days almost all the saplings have grown to full tress and produce a couple stacks of wood.