You can create blocks anywhere you want. It's hard to know the x, y, z location of the places around you so you can start by placing a block relative to your own location.
Make sure you import the block module on line 2. Create a gold block and see where it goes in the game.
2) .block
Go look at the API and scroll down to the Block section. Choose a type of block to place instead of gold. I'm going to pick leaves!
3) block.id
Some blocks have different options to choose when placed. Stairs, for example, can face in different directions. Wool can come in different colors. To choose an option you add a number after the id.
4) .setBlocks(x,y,z)
If you want to build something big it's easier to place many blocks at a time. To do this, use .setBlocks. With setBlocks you give two x,y,z points and it fills in between them.
Lesson 2 is done! Don't forget to answer questions for Lesson 2 in MyHewitt.