11CONSTRUCTING WALLS

image

Placing blocks can be time consuming and dangerous, especially if you fall from a great height when you’re creating large buildings in survival mode. Instead of building walls yourself, you can program a turtle to take on these hazardous and dull building jobs. In this chapter, you’ll design an algorithm to create walls of any size by adding more functions to the hare module. Although we’ll focus on creating stone brick walls in this chapter, the functions will work with any type of block, including dirt, glass, or even watermelons, as you can see in Figure 11-1.

Figure 11-1: Turtles building walls of dirt, stone bricks, ...

Get Coding with Minecraft now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.