CONTENTS Titlepage Copyright Dedication About the Author Introduction Part 1: Basic Projects Chapter 1: Item Frame with Diamond Sword Translating Minecraft to the Real World Building the Item Frame Summary Chapter 2: LEGO Minecraft Blocks Translating Minecraft to LEGO Building LEGO Blocks Summary Chapter 3: Minecraft Chess Set Building an In-Game Minecraft Chess Set Building a Real-World Chess Set Summary Part 2: LED Projects Chapter 4: LED-Lit Minecraft Block Making a Wooden Minecraft Block Summary Chapter 5: Redstone Lamp Build a Redstone Lamp Summary Chapter 6: Light-Up Chess Board Building a Minecraft Chess Board Summary Part 3: Arduino Projects Chapter 7: Flickering LED Jack O’Lantern Minecraft Jack O’Lantern Summary Chapter 8: Night and Day Clock Telling Time Summary Chapter 9: Robot Creeper Building the Robot Creeper Summary Arduino Crash Course Appendix A: Know Your UNO Sketches: Programs for Arduinos Next Steps Index MINECRAFT FOR MAKERS Minecraft in the Real World with LEGO, 3D Printing, Arduino, and More! John Baichtal Copyright © 2017 John Baichtal. All rights reserved. Printed in the United States of America. Published by Maker Media, Inc., 1700 Montgomery Street, Suite 240, San Francisco, CA 94111 Maker Media books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (safaribooksonline.com). For more information, contact our corporate/institutional sales department: 800-998-9938 or [email protected]. Publisher: Roger Stewart Copy Editor and Proofreader: Elizabeth Welch, Happenstance Type-O-Rama Interior Designer and Compositor: Maureen Forys, Happenstance Type-O-Rama Cover Designer: Maureen Forys, Happenstance Type-O-Rama Indexer: Valerie Perry, Happenstance Type-O-Rama Circuit diagrams designed in Fritzing (Fritzing.org) August 2017: First Edition Revision History for the First Edition 2017-08-26 First Release See oreilly.com/catalog/errata.csp?isbn=9781680453157 for release details. Make:, Maker Shed, and Maker Faire are registered trademarks of Maker Media, Inc. The Maker Media logo is a trademark of Maker Media, Inc. Minecraft for Makers and related trade dress are trademarks of Maker Media, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and Maker Media, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. While the publisher and the author have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the author disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights. 978-1-68045315-7 SAFARI® BOOKS ONLINE Safari Books Online is an on-demand digital library that delivers expert content in both book and video form from the world’s leading authors in technology and business. Technology professionals, software developers, web designers, and business and creative professionals use Safari Books Online as their primary resource for research, problem solving, learning, and certification training. Safari Books Online offers a range of plans and pricing for enterprise, government, education, and individuals. Members have access to thousands of books, training videos, and prepublication manuscripts in one fully searchable database from publishers like O’Reilly Media, Prentice Hall Professional, Addison-Wesley Professional, Microsoft Press, Sams, Que, Peachpit Press, Focal Press, Cisco Press, John Wiley & Sons, Syngress, Morgan Kaufmann, IBM Redbooks, Packt, Adobe Press, FT Press, Apress, Manning, New Riders, McGraw-Hill, Jones & Bartlett, Course Technology, and hundreds more. For more information about Safari Books Online, please Bartlett, Course Technology, and hundreds more. For more information about Safari Books Online, please visit us online. How to Contact Us Please address comments and questions to the publisher: Maker Media 1700 Montgomery St. Suite 240 San Francisco, CA 94111 You can send comments and questions to us by email at [email protected]. Maker Media unites, inspires, informs, and entertains a growing community of resourceful people who undertake amazing projects in their backyards, basements, and garages. Maker Media celebrates your right to tweak, hack, and bend any Technology to your will. The Maker Media audience continues to be a growing culture and community that believes in bettering ourselves, our environment, our educational system—our entire world. This is much more than an audience, it’s a worldwide movement that Maker Media is leading. We call it the Maker Movement. To learn more about Make: visit us at makezine.com. You can learn more about the company at the following websites: Maker Media: makermedia.com Maker Faire: makerfaire.com Maker Shed: makershed.com Thanks to the many makers around the world who, like me, were inspired by Minecraft to build things in real life. About the Author JOHN BAICHTAL has written or edited over a dozen books, including the award-winning Cult of LEGO (No Starch Press, 2011), LEGO hacker bible Make: LEGO and Arduino Projects (Maker Media, 2012) with Adam Wolf and Matthew Beckler, as well as Robot Builder: The Beginner’s Guide to Building Robots (Que, 2013) and Hacking Your LEGO Mindstorms EV3 Kit (Que, 2015). John lives in Minneapolis with his wife and three children.