A hands-on introduction to coding that teaches you how to program bots to do cool things in the game you love–Minecraft! This book takes the robotic “turtle” method, and extends it to the 3D, interactive world of Minecraft.
You’ve mined for diamonds, crafted dozens of tools, and built all sorts of structures–but what if you could program robots to do all of that for you in a fraction of the time?
In Coding with Minecraft®, you’ll create a virtual robot army with Lua, a programming language used by professional game developers. Step-by-step coding projects will show you how to write programs that automatically dig mines, collect materials, craft items, and build anything that you can imagine. Along the way, you’ll explore key computer science concepts like data types, functions, variables, and more.
Learn how to:
Bonus activities in each chapter will help you take your coding skills to the next level. By the end of the book, you’ll understand how powerful coding can be and have plenty of robots at your beck and call.
Chapter 1: Getting Started with ComputerCraft
Chapter 2: Programming Basics
Chapter 3: Talking to Your Turtle
Chapter 4: Programming Turtles to Dance
Chapter 5: Making a Better Dancer
Chapter 6: Programming a Robot Lumberjack
Chapter 7: Creating Modules to Reuse Your Code
Chapter 8: Running an Automated Tree Farm
Chapter 9: Building a Cobblestone Generator
Chapter 10: Making a Stone Brick Factory
Chapter 11: Constructing Walls
Chapter 12: Constructing Rooms
Chapter 13: Constructing Floors
Chapter 14: Programming a Robotic Farm
Chapter 15: Programming a Staircase Miner