CODING WITH MINECRAFT®
BUILD TALLER, FARM FASTER, MINE DEEPER, AND AUTOMATE THE BORING STUFF
CODING WITH MINECRAFT. Copyright © 2018 by Al Sweigart.
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher.
Publisher: William Pollock
Production Editor: Laurel Chun
Cover Illustration: Josh Ellingson
Developmental Editor: Jan Cash
Technical Reviewer: Daniel Ratcliffe
Copyeditor: Anne Marie Walker
Compositor: Meg Sneeringer
Proofreader: Shannon Waite
For information on distribution, translations, or bulk sales, please contact No Starch Press, Inc. directly:
No Starch Press, Inc.
245 8th Street, San Francisco, CA 94103
phone: 1.415.863.9900; email@example.com
Library of Congress Cataloging-in-Publication Data
Names: Sweigart, Al, author.
Title: Coding with Minecraft: build taller, farm faster, mine deeper,
and automate the boring stuff / Al Sweigart.
Description: San Francisco : No Starch Press, Inc.,  | Includes
Identifiers: LCCN 2017046330 (print) | LCCN 2017058488 (ebook) | ISBN
9781593278540 (ebook) | ISBN 1593278543 (ebook) | ISBN 9781593278533
(pbk.) | ISBN 1593278535 (pbk.)
Subjects: LCSH: Minecraft (Game) | Lua (Computer program language) | Computer
Classification: LCC GV1469.35.M535 (ebook) | LCC GV1469.35.M535 S94 2018
(print) | DDC 794.8--dc23
LC record available at https://lccn.loc.gov/2017046330
No Starch Press and the No Starch Press logo are registered trademarks of No Starch Press, Inc. Other product and company names mentioned herein may be the trademarks of their respective owners. Rather than use a trademark symbol with every occurrence of a trademarked name, we are using the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.
Minecraft is a registered trademark of Mojang Synergies AB, which does not authorize or endorse this book.
The information in this book is distributed on an “As Is” basis, without warranty. While every precaution has been taken in the preparation of this work, neither the author nor No Starch Press, Inc. shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in it.
To Daniel Ratcliffe, the ComputerCraft creator, and Seymour Papert, the turtle creator
ABOUT THE AUTHOR
Al Sweigart is a professional software developer who teaches programming to kids and adults. Sweigart has written several bestselling programming books for beginners, including Automate the Boring Stuff with Python, Invent Your Own Computer Games with Python, and Cracking Codes with Python (all from No Starch Press). His books are freely available under a Creative Commons license at https://inventwithpython.com/.
ABOUT THE TECHNICAL REVIEWER
Daniel Ratcliffe is a game developer from Cambridge, England. He created the ComputerCraft mod for Minecraft in 2011 and has been making games since 2002. You can read about his latest projects on Twitter, @DanTwoHundred. His other interests include Star Trek, cycling, and cats.
It’s misleading to have just my name on the cover. This book wouldn’t exist without the efforts of many people. I’d like to thank my publisher, Bill Pollock; my developmental editors, Jan Cash and Annie Choi; my production editor, Laurel Chun; my technical reviewer, Daniel Ratcliffe; my copyeditor, Anne Marie Walker; and all of the staff at No Starch Press. I’d also like to thank Josh Ellingson for a great cover illustration.
Thanks to Michelle and Doug Rapp for introducing me to Minecraft and punching trees.