Step 1: Finding textures
First we need to find minecraft's textures. For this I used Google images. I searched "minecraft default textures". I found the appropriate textures straight away. I used the "260blg2.jpg" file. But there is a problem. The grass in Minecraft can be different colours and the texture file has the grass as a black and white image so that Minecraft can change the colour of it as it pleases. What I did was use Paint.net to colour the texture green so that we can use in in Blender. I have put the image here so you can download it by clicking this link. Minecraft Textures

Step 2: Putting it onto a Blender cube
Now we are going to open up Blender 2.5. If you don't already have it then you can get it here.
Now that Blender is open, we are going to keep the default cube. It will be our first minecraft cube. Go to the panel on the right and click on the "Texture" tab. There is already a default texture that doesn't do anything. Go ahead and change the type from "None" to "Image or Movie". In the Image settings under the type setting, click the "Open" button and select the image you downloaded.
If we render the scene now (by pressing F12), we will see a few problems.

Firstly, one of the sides of the cube is pure black. When we make a scene out of minecraft blocks later, we can fix that up properly, but just for testing things before that it would be good to be able to see all sides of the cube. The reason the side is black is because there is no light reaching it. The only light source is the default light spot. To fix this problem, go to the "World" tab and enable "Environment Lighting".
Now our cube is lit up nicely.

The second problem is that on the sides of the cube, the texture is just a single line that has been stretched along the entire side of the cube. The other problem is that the entire texture sheet is put on the cube while we only want one of the small textures of the sheet on the cube. Both these problems can be solved the same way. We have to change the way the texture is mapped to the cube.
First we go back to the texture tab. If nothing appears then the texture is referring to the world tab because that is where we were last. Click the "Material" tab first, which is the one just before the texture tab. Now the texture tab should refer to the material. The material is what defines what the object (the cube) is drawn as. Now in the texture tab, go to the "Mapping" settings. Change the Coordinates from "Generated" to "UV". UV is the coordinates that we will define ourselves. We can set each side of the cube to a specific place on the texture sheet.
|