15PROGRAMMING A STAIRCASE MINER

image

From chopping trees and crafting stone bricks to farming wheat, turtles are now doing most of your chores for you. The last resources you need are those you mine from deep underground, such as iron, gold, diamond, coal, redstone, and lapis lazuli.

Your turtles can do this mining for you. Turtles come with a mining program named excavate, which you can use to mine a square hole straight down to the bedrock blocks at the bottom of the Minecraft world. However, as shown in Figure 15-1, you can easily fall into these deep holes, which makes them dangerous.

Figure 15-1: The excavate program creates deep, dangerous holes. ...

Get Coding with Minecraft now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.