Coding with Minecraft: Build Taller, Farm Faster, Mine Deeper, and Automate the Boring Stuff

Coding with Minecraft: Build Taller, Farm Faster, Mine Deeper, and Automate the Boring Stuff — page 7
Chapter 6 Programming a Robot Lumberjack features a program to make a turtle chop down a single tree and collect its wood Chapter 7 Creating Modules to Reuse Your Code teaches you how to write code once and share it with multiple programs Chapter 8 Running an Automated Tree Farm extends the program from Chapter 6 to create a fully automated tree farm so your turtles can harvest wood from multiple trees Chapter 9 Building a Cobblestone Generator features a program for mining unlimited amounts of cobblestone which the turtles will use as building material for Chapters 10 through 13 Chapter 10 Making a Stone Brick Factory features a program to turn the cobblestone from Chapter 9 into stone bricks Chapter 11 Constructing Walls includes a program that uses stone bricks to build walls Chapter 12 Constructing Rooms contains a program that lets you join walls together to build rooms Chapter 13 Constructing Floors features a program to build floors and ceilings for your rooms Chapter 14 Programming a Robotic Farm features a program to make turtles plant and harvest different kinds of crops so you can keep yourself fed Chapter 15 Programming a Staircase Miner features a program that digs stairs deep into the ground to mine ore and other valuable blocks The Function Reference lists and explains how to use all the functions in this book The Name ID Reference lists commonly used Minecraft blocks and items along with their name IDs which you’ll use to identify block types and other items in your programs getting help Minecraft famously lacks a tutorial for new players It doesn’t have an instruc tion manual or even a help menu Minecraft forces you to be responsible for your own education You’ll need to do online research form questions find answers and sometimes just do some plain old experimentation Minecraft cultivates a growth mindset in players Even after falling into lava or having their base blown up by a creeper players come back determined to learn how to overcome these problems However this book is about the ComputerCraft mod not the basics of playing Minecraft To use this book you should already know how to do the following in Minecraft Mine for ore stone coal wood and other blocks Craft a workbench and tools such as axes shovels torches and pickaxes xx introduction