Coding with Minecraft
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:
- Program robots that make smart decisions with flow control;
- Reuse code so that your robots can farm any crop you want, including wheat, sugar cane, and even cacti!;
- Program a factory that generates infinite building supplies;
- Design an algorithm for creating walls and buildings of any size;
- Code yourself a pickaxe-swinging robotic lumberjack!;
- Create a robot that digs mine shafts with stairs so you can explore safely.
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.
Table of contents
-
Getting Started with Minecraft and Computercraft
-
Basic Lua Programming for Turtles
-
Talking to Your Turtle
-
Programming Turtles to Dance
-
Making a Better Dancer
-
Programming a Robo Lumberjack
-
Creating Modules to Reuse Your Code
-
Running an Automated Tree Farm
-
Building a Cobblestone Generator
-
Making a Stone Brick Factory
-
Constructing Walls
-
Constructing Rooms
-
Constructing Floors
-
Programming a Robotic Farm
-
Programming a Staircase Miner
-
Function Reference
-
Name ID Reference
| Pages | 256 |
|---|---|
| Size | |
| File type | |
| Downloads | 267 |
| Created | 2022-02-01 |
| License | CC BY-NC-SA |
| Author(s) | Al Sweigart |
Others related eBooks about Coding with Minecraft
-
The Common Java Cookbook
Download free course The Common Java Cookbook, pdf file on 333 pages by Tim O'Brien....
-
Python for Informatics: Exploring Information
This book is designed to introduce students to programming and computational thinking through the lens of exploring data. You can think of Python as your tool to solve problems that are far beyond the capability of a spreadsheet. It is an easy-to-use and easy-to learn programming language that is fr...
-
: Advanced R Solutions
This book offers solutions to the exercises from Hadley Wickham's book Advanced R (Edition 2). It is work in progress and under active development. The 2nd edition of Advanced R is in print now and we hope to provide most of the answers....
-
Elementary Algorithms
This book introduces about elementary algorithms and data structure. It includes side-by-s..., download free Algorithms tutorial in PDF (642 pages) created by Larry LIU Xinyu ....
-
Learning iOS eBook (PDF)
Download free IOS tutorial course material and training in PDF file 1131 pages....
-
Annotated Algorithms in Python: with Applications in Physics, Biology, and Finance
This book is assembled from lectures given by the author over a period of 10 years at the School of Computing of DePaul University. The lectures cover multiple classes, including Analysis and Design of Algorithms, Scientific Computing, Monte Carlo Simulations, and Parallel Algorithms. These lectur...
-
Learning Python Matplotlib
Download free course Learning Python Matplotlib, pdf file on 97 pages by Stack Overflow Community....
-
TouchDevelop - Programming on the Go
Mobile devices such as smartphones and tablets are set to become the main computersthat virtually all people will own and carry with them at all times. And yet,mobile devices are not yet used for all computing tasks. A project at MicrosoftResearch was created to answer a simple question: It is possi...
-
Exploring .NET Core with Microservices, ASP.NET Core, and Entity Framework Core
Windows developers have always enjoyed the productivity boost you get with the .NET platfo..., download free .NET tutorial in PDF (155 pages) created by ....
-
Coffee Break Python Slicing
Puzzle-based learning is an active learning technique. With code puzzles, you will learn f..., download free Python tutorial in PDF (89 pages) created by ....