Skip to Main Content
Adventures in Minecraft, 2nd Edition
book

Adventures in Minecraft, 2nd Edition

by David Whale, Martin O'Hanlon
November 2017
Intermediate to advanced content levelIntermediate to advanced
320 pages
6h 57m
English
Wiley
Content preview from Adventures in Minecraft, 2nd Edition
image

BUILDING THINGS IN Minecraft is great fun. You can build almost anything you can dream up, limited only by the size of the Minecraft world and your imagination. You can build houses, castles, underground waterways, multi-storey hotels with swimming pools, and even whole towns and cities! But it can take a lot of time and hard work to build complex objects with many different types of blocks, especially if there is a lot of repetition. What if you could automate some of your building tasks? Wouldn’t that look like magic to your friends?

A programming language like Python is ideal for automating complex tasks. In this adventure, you learn some magic that allows you to automatically build large numbers of blocks inside the Minecraft world and then loop through those instructions to build huge repeating structures, such as a whole street of houses (see Figure 3-1). Your friends will be amazed at your huge creations as they walk through rows and rows of houses and wonder how you built such complex structures! You also learn how to read numbers from the keyboard when your program first runs, which enables you to write programs that your users can vary without changing your program code!

image

FIGURE 3-1 A house built from Minecraft blocks

Creating Blocks

Each type of block in the Minecraft ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Ultimate Player’s Guide to Minecraft, Third Edition

The Ultimate Player’s Guide to Minecraft, Third Edition

Stephen O’Brien
Minecraft Modding For Kids For Dummies

Minecraft Modding For Kids For Dummies

Sarah Guthals, Stephen Foster, Lindsey Handley

Publisher Resources

ISBN: 9781119439585Purchase book