Learn to Program with Minecraft: Transform Your World with the Power of Python
- 4h 26m
- Craig Richardson
- No Starch Press
- 2016
You've bested creepers, traveled deep into caves, and maybe even gone to The End and back-but have you ever transformed a sword into a magic wand? Built a palace in the blink of an eye? Designed your own color-changing disco dance floor?
In Learn to Program with Minecraft, you'll do all this and more with the power of Python, a free language used by millions of professional and first-time programmers!
Begin with some short, simple Python lessons and then use your new skills to modify Minecraft to produce instant and totally awesome results. Learn how to customize Minecraft to make mini-games, duplicate entire buildings, and turn boring blocks into gold.
You'll also write programs that:
- Take you on an automated teleportation tour around your Minecraft world
- Build massive monuments, pyramids, forests, and more in a snap!
- Make secret passageways that open when you activate a hidden switch
- Create a spooky ghost town that vanishes and reappears elsewhere
- Show exactly where to dig for rare blocks
- Cast a spell so that a cascade of flowers (or dynamite if you're daring!) follows your every move
- Make mischief with dastardly lava traps and watery curses that cause huge floods
Whether you're a Minecraft megafan or a newbie, you'll see Minecraft in a whole new light while learning the basics of programming. Sure, you could spend all day mining for precious resources or building your mansion by hand, but with the power of Python, those days are over!
- Requires: Windows 7 or later; OS X 10.10 or later; or a Raspberry Pi.
- Uses Python 3
About the Author
Craig Richardson is a software developer and Python educator. He has worked for the Raspberry Pi Foundation, taught high school computing classes, and led many workshops on Python programming with Minecraft.
In this Book
-
Learn to Program with Minecraft—Transform Your World with the Power of Python
-
Introduction
-
Setting Up For Your Adventure
-
Teleporting With Variables
-
Building Quickly And Traveling Far With Math
-
Chatting With Strings
-
Figuring Out What’s True And False With Booleans
-
Making Mini-Games With If Statements
-
Dance Parties And Flower Parades With While Loops
-
Functions Give You Superpowers
-
Hitting Things With Lists And Dictionaries
-
Minecraft Magic With For Loops
-
Saving And Loading Buildings With Files And Modules
-
Getting Classy With Object-Oriented Programming
-
Afterword
-
Block ID Cheat Sheet
-
Resources