MinecraftMastery: Build Your Own Redstone Contraptions and Mods
About the Authors
Matthew Monk (Preston, UK) is an experienced Minecraft player with a strong interest in the technical aspects of the game as well as making mods for it. He is currently in high school. Matt is also the author of ComputerCraft: Lua Programming in Minecraft, and is an active contributor to the Minecraft mod and video community as well as hosting Minecraft servers for his friends.
Simon Monk is a full-time author and loves programming and electronics, ideally in combination. He has written books about the Raspberry Pi, Arduino, and BeagleBone platforms as well as Hacking Electronics (McGraw-Hill Education). He spent many years as a professional programmer before turning to writing. You can find a list of his other books here: http://www.simonmonk.org.
You can follow the authors on Twitter using @mcmasterybook.
MinecraftMastery: Build Your Own Redstone Contraptions and Mods
Matthew Monk
Simon Monk
New York Chicago San Francisco
Athens London Madrid Mexico City
Milan New Delhi Singapore Sydney Toronto
Copyright 2014 by McGraw-Hill Education (Publisher). All rights reserved. Printed in the United States of America. Except as permitted under the Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of Publisher, with the exception that the program listings may be entered, stored, and executed in a computer system, but they may not be reproduced for publication.
ISBN: 978-0-07-183967-9
MHID: 0-07-183967-4
e-Book conversion by Cenveo Publisher Services
Version 1.0
The material in this eBook also appears in the print version of this title: ISBN: 978-0-07-183966-2, MHID: 0-07-183966-6.
McGraw-Hill Education eBooks are available at special quantity discounts to use as premiums and sales promotions, or for use in corporate training programs. To contact a representative, please visit the Contact Us pages at www.mhprofessional.com.
All trademarks or copyrights mentioned herein are the possession of their respective owners and McGraw-Hill Education makes no claim of ownership by the mention of products that contain these marks.
Information has been obtained by McGraw-Hill Education from sources believed to be reliable. However, because of the possibility of human or mechanical error by our sources, McGraw-Hill Education, or others, McGraw-Hill Education does not guarantee the accuracy, adequacy, or completeness of any information and is not responsible for any errors or omissions or the results obtained from the use of such information.
Minecraft is a trademark of Notch Development AB.
TERMS OF USE
This is a copyrighted work and McGraw-Hill Education (McGraw Hill) and its licensors reserve all rights in and to the work. Use of this work is subject to these terms. Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hills prior consent. You may use the work for your own noncommercial and personal use; any other use of the work is strictly prohibited. Your right to use the work may be terminated if you fail to comply with these terms.
THE WORK IS PROVIDED AS IS. McGRAW-HILL AND ITS LICENSORS MAKE NO GUARANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF OR RESULTS TO BE OBTAINED FROM USING THE WORK, INCLUDING ANY INFORMATION THAT CAN BE ACCESSED THROUGH THE WORK VIA HYPERLINK OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. McGraw-Hill and its licensors do not warrant or guarantee that the functions contained in the work will meet your requirements or that its operation will be uninterrupted or error free. Neither McGraw-Hill nor its licensors shall be liable to you or anyone else for any inaccuracy, error or omission, regardless of cause, in the work or for any damages resulting therefrom. McGraw-Hill has no responsibility for the content of any information accessed through the work. Under no circumstances shall McGraw-Hill and/or its licensors be liable for any indirect, incidental, special, punitive, consequential or similar damages that result from the use of or inability to use the work, even if any of them has been advised of the possibility of such damages. This limitation of liability shall apply to any claim or cause whatsoever whether such claim or cause arises in contract, tort or otherwise.
CONTENTS AT A GLANCE
CONTENTS
ACKNOWLEDGMENTS
We would like to thank Roger Stewart, Patty Mon, Vas Sharma, and the excellent TAB team for doing such a great job in the production of this book.
We also owe a great debt to Mojang for producing such a compelling and flexible game.
Matthew thanks Sue Bradshaw (Mum) for her support during the writing of this book and Simon Monk (Dad) for encouraging him to divert valuable gaming time into the writing of this book.
INTRODUCTION
This book is aimed at the reader who has started playing Minecraft and is ready to get involved in some of the more technical aspects of Minecraft. The book explains how to use redstone to make interesting contraptions. It also explains how to use both the qCraft and ComputerCraft mods.
Taking this even further, the book shows you in easy steps how to start creating your own mods with a little Java programming.
How to Use the Book
The book is designed to gradually progress through levels of difficulty so that you can master these advanced sides of Minecraft. It therefore assumes a basic familiarity with Minecraft. The book is organized into the following chapters:
: Introduction An introduction to Minecraft including basic crafting and forging as well as the options available in setting up a new world and getting started. If you already play Minecraft, then you can probably skip most of this chapter.
: Basic Redstone In this chapter, you will learn the very basics of redstone, such as power and knowing what can be controlled by it, and how to use basic redstone items like levers, buttons, and lamps. You will also make a basic redstone-controlled door.
: Redstone Logic Gates Stepping up a gear from basic redstone, this chapter covers the creation of commonly used logic gates and flip-flops that can be used to build really advanced contraptions.
: Advanced Redstone Applying some of the techniques from the previous chapters, this chapter shows you how to make block swappers, door locks and a functional seven-segment display.
: Miscellaneous Redstone