CINXE.COM
Learn to Program with Minecraft | No Starch Press
<!DOCTYPE html> <html lang="en" dir="ltr" xmlns:og="https://ogp.me/ns#"> <head> <link rel="profile" href="https://www.w3.org/1999/xhtml/vocab" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" href="https://nostarch.com/sites/default/files/favicon.ico" type="image/vnd.microsoft.icon" /> <meta name="description" content="Learn to Program with Minecraft will teach you the basics of Python programming while having fun with Minecraft!" /> <meta name="generator" content="Drupal 7 (http://drupal.org)" /> <link rel="image_src" href="https://nostarch.com/sites/default/files/LTPWMCover.png" /> <link rel="canonical" href="https://nostarch.com/programwithminecraft" /> <link rel="shortlink" href="https://nostarch.com/node/343" /> <meta property="og:type" content="article" /> <meta property="og:url" content="https://nostarch.com/programwithminecraft" /> <meta property="og:title" content="Learn to Program with Minecraft" /> <meta property="og:description" content="Learn to Program with Minecraft will teach you the basics of Python programming while having fun with Minecraft!" /> <meta property="og:updated_time" content="2025-03-20T11:43:20-07:00" /> <meta property="og:image:url" content="https://nostarch.com/sites/default/files/LTPWMCover.png" /> <meta property="og:image:secure_url" content="https://nostarch.com/sites/default/files/LTPWMCover.png" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:site" content="@nostarch" /> <meta name="twitter:url" content="https://nostarch.com/programwithminecraft" /> <meta name="twitter:title" content="Learn to Program with Minecraft" /> <meta name="twitter:description" content="Learn to Program with Minecraft will teach you the basics of Python programming while having fun with Minecraft!" /> <meta name="twitter:image" content="https://nostarch.com/sites/default/files/LTPWMCover.png" /> <meta property="product:price:amount" content="23.95" /> <meta property="product:price:currency" content="USD" /> <meta property="product:isbn" content="9781593276706" /> <meta property="article:published_time" content="2015-02-13T16:57:53-08:00" /> <meta property="article:modified_time" content="2025-03-20T11:43:20-07:00" /> <meta property="product:retailer_part_no" content="pythonwithminecraft-E" /> <meta property="product:mfr_part_no" content="pythonwithminecraft-E" /> <title>Learn to Program with Minecraft | No Starch Press</title> <link type="text/css" rel="stylesheet" href="https://nostarch.com/sites/default/files/css/css_lQaZfjVpwP_oGNqdtWCSpJT1EMqXdMiU84ekLLxQnc4.css" media="all" /> <link type="text/css" rel="stylesheet" href="https://nostarch.com/sites/default/files/css/css_guSWpwqRBCVb2J7ivC8BaNuaPffCXmbkGB5xDBqKKu8.css" media="all" /> <link type="text/css" rel="stylesheet" href="https://nostarch.com/sites/default/files/css/css_Dw0rmhFX_owMmlf1HH5Y-_BnOHcMlkri1yMjYHD4ffs.css" media="all" /> <link type="text/css" rel="stylesheet" href="https://nostarch.com/sites/default/files/css/css_XJm3Wqia1GUjoI4j54duSLNZVR3Kxhbwy0s3UwuhhHg.css" media="all" /> <!-- HTML5 element support for IE6-8 --> <!--[if lt IE 9]> <script src="https://cdn.jsdelivr.net/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script> <![endif]--> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <script>window.jQuery || document.write("<script src='/sites/all/modules/contrib/jquery_update/replace/jquery/2.2/jquery.min.js'>\x3C/script>")</script> <script src="https://nostarch.com/misc/jquery-extend-3.4.0.js?v=2.2.4"></script> <script src="https://nostarch.com/misc/jquery-html-prefilter-3.5.0-backport.js?v=2.2.4"></script> <script src="https://nostarch.com/misc/jquery.once.js?v=1.2"></script> <script src="https://nostarch.com/misc/drupal.js?stn5l0"></script> <script src="https://nostarch.com/sites/all/modules/contrib/jquery_update/js/jquery_browser.js?v=0.0.1"></script> <script src="https://nostarch.com/misc/form-single-submit.js?v=7.103"></script> <script src="https://nostarch.com/sites/all/modules/contrib/ubercart/uc_file/uc_file.js?stn5l0"></script> <script src="https://nostarch.com/sites/all/libraries/colorbox/jquery.colorbox-min.js?stn5l0"></script> <script src="https://nostarch.com/sites/all/modules/contrib/colorbox/js/colorbox.js?stn5l0"></script> <script src="https://nostarch.com/sites/all/modules/contrib/colorbox/styles/plain/colorbox_style.js?stn5l0"></script> <script src="https://nostarch.com/sites/all/modules/contrib/colorbox/js/colorbox_load.js?stn5l0"></script> <script src="https://nostarch.com/sites/all/modules/contrib/colorbox/js/colorbox_inline.js?stn5l0"></script> <script src="https://nostarch.com/sites/all/modules/contrib/ubercart/uc_cart/uc_cart_block.js?stn5l0"></script> <script src="https://nostarch.com/sites/all/modules/contrib/google_analytics/googleanalytics.js?stn5l0"></script> <script src="https://www.googletagmanager.com/gtag/js?id=UA-5027625-1"></script> <script>window.google_analytics_uacct = "UA-5027625-1";window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments)};gtag("js", new Date());gtag("set", "developer_id.dMDhkMT", true);gtag("config", "UA-5027625-1", {"groups":"default","anonymize_ip":true});gtag("config", "G-51XGZT9Y4H", {"groups":"default","anonymize_ip":true});</script> <script src="https://nostarch.com/sites/all/themes/nostarch/js/bootstrap.min.js?stn5l0"></script> <script src="https://nostarch.com/sites/all/themes/nostarch/js/main.js?stn5l0"></script> <script src="https://nostarch.com/sites/all/themes/nostarch/js/front_grid_height.js?stn5l0"></script> <script>jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","setHasJsCookie":0,"ajaxPageState":{"theme":"nostarch","theme_token":"Wdlyb5sNe1bpAxHUzyR8s3N44jksvzQftTsevLSr-wM","js":{"sites\/all\/modules\/contrib\/addthis\/addthis.js":1,"sites\/all\/libraries\/shariff\/shariff.min.js":1,"sites\/all\/themes\/contrib\/bootstrap\/js\/bootstrap.js":1,"\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/2.2.4\/jquery.min.js":1,"0":1,"misc\/jquery-extend-3.4.0.js":1,"misc\/jquery-html-prefilter-3.5.0-backport.js":1,"misc\/jquery.once.js":1,"misc\/drupal.js":1,"sites\/all\/modules\/contrib\/jquery_update\/js\/jquery_browser.js":1,"misc\/form-single-submit.js":1,"sites\/all\/modules\/contrib\/ubercart\/uc_file\/uc_file.js":1,"sites\/all\/libraries\/colorbox\/jquery.colorbox-min.js":1,"sites\/all\/modules\/contrib\/colorbox\/js\/colorbox.js":1,"sites\/all\/modules\/contrib\/colorbox\/styles\/plain\/colorbox_style.js":1,"sites\/all\/modules\/contrib\/colorbox\/js\/colorbox_load.js":1,"sites\/all\/modules\/contrib\/colorbox\/js\/colorbox_inline.js":1,"sites\/all\/modules\/contrib\/ubercart\/uc_cart\/uc_cart_block.js":1,"sites\/all\/modules\/contrib\/google_analytics\/googleanalytics.js":1,"https:\/\/www.googletagmanager.com\/gtag\/js?id=UA-5027625-1":1,"1":1,"sites\/all\/themes\/nostarch\/js\/bootstrap.min.js":1,"sites\/all\/themes\/nostarch\/js\/main.js":1,"sites\/all\/themes\/nostarch\/js\/front_grid_height.js":1},"css":{"modules\/system\/system.base.css":1,"modules\/field\/theme\/field.css":1,"sites\/all\/modules\/contrib\/logintoboggan\/logintoboggan.css":1,"modules\/node\/node.css":1,"sites\/all\/modules\/contrib\/uc_fedex\/uc_fedex.css":1,"sites\/all\/modules\/contrib\/ubercart\/uc_file\/uc_file.css":1,"sites\/all\/modules\/contrib\/ubercart\/uc_order\/uc_order.css":1,"sites\/all\/modules\/contrib\/ubercart\/uc_product\/uc_product.css":1,"sites\/all\/modules\/contrib\/ubercart\/uc_store\/uc_store.css":1,"sites\/all\/modules\/contrib\/views\/css\/views.css":1,"sites\/all\/modules\/contrib\/ckeditor\/css\/ckeditor.css":1,"sites\/all\/modules\/contrib\/uc_discounts_alt\/uc_discounts\/uc_discounts.css":1,"sites\/all\/modules\/contrib\/colorbox\/styles\/plain\/colorbox_style.css":1,"sites\/all\/modules\/contrib\/ctools\/css\/ctools.css":1,"sites\/all\/modules\/contrib\/ubercart\/uc_cart\/uc_cart_block.css":1,"sites\/all\/libraries\/shariff\/shariff.complete.css":1,"sites\/all\/themes\/nostarch\/css\/en_styles.css":1,"sites\/all\/themes\/nostarch\/css\/custom.css":1,"sites\/all\/themes\/nostarch\/css\/bootstrap-3-vert-offset.css":1,"sites\/all\/themes\/nostarch\/css\/bootstrap-3-autoclear.css":1,"sites\/all\/themes\/nostarch\/css\/glyphicons.css":1}},"colorbox":{"opacity":"0.85","current":"{current} of {total}","previous":"\u00ab Prev","next":"Next \u00bb","close":"Close","maxWidth":"98%","maxHeight":"98%","fixed":true,"mobiledetect":true,"mobiledevicewidth":"480px","file_public_path":"\/sites\/default\/files","specificPagesDefaultValue":"admin*\nimagebrowser*\nimg_assist*\nimce*\nnode\/add\/*\nnode\/*\/edit\nprint\/*\nprintpdf\/*\nsystem\/ajax\nsystem\/ajax\/*"},"better_exposed_filters":{"views":{"topics":{"displays":{"block":{"filters":[]}}},"related_products":{"displays":{"block":{"filters":[]}}}}},"googleanalytics":{"account":["UA-5027625-1","G-51XGZT9Y4H"],"trackOutbound":1,"trackMailto":1,"trackDownload":1,"trackDownloadExtensions":"7z|aac|arc|arj|asf|asx|avi|bin|csv|doc(x|m)?|dot(x|m)?|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt(x|m)?|pot(x|m)?|pps(x|m)?|ppam|sld(x|m)?|thmx|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls(x|m|b)?|xlt(x|m)|xlam|xml|z|zip","trackColorbox":1},"urlIsAjaxTrusted":{"\/programwithminecraft":true},"bootstrap":{"anchorsFix":"0","anchorsSmoothScrolling":"0","formHasError":1,"popoverEnabled":1,"popoverOptions":{"animation":1,"html":0,"placement":"right","selector":"","trigger":"click","triggerAutoclose":1,"title":"","content":"","delay":0,"container":"body"},"tooltipEnabled":1,"tooltipOptions":{"animation":1,"html":0,"placement":"auto left","selector":"","trigger":"hover focus","delay":0,"container":"body"}}});</script> </head> <body class="html not-front not-logged-in two-sidebars page-node page-node- page-node-343 node-type-product uc-product-node"> <div id="skip-link"> <a href="#main-content" class="element-invisible element-focusable">Skip to main content</a> </div> <header id="" class="header" role="banner" class="navbar navbar-default"> <div class="container"> <div class="row"> <nav role="navigation" class="navbar navbar-default visible-xs"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand text-uppercase" href="/"><img src="https://nostarch.com/sites/all/themes/nostarch/logo.png" alt="Home" class="img-responsive"/></a> </div> <div id="navbar" class="navbar-collapse collapse text-center"> <ul class="menu nav navbar-nav"><li class="first leaf"><a href="/catalog.htm" title="Explore our catalog">Catalog</a></li> <li class="leaf"><a href="https://nostarch.com/merchandise-0" title="Merchandise">Merchandise</a></li> <li class="leaf"><a href="/blog" title="The No Starch Press blog">Blog</a></li> <li class="leaf"><a href="https://nostarch.com/early-access-program" title="Media contact">Early Access</a></li> <li class="leaf"><a href="/writeforus" title="Submit a book proposal">Write for Us</a></li> <li class="leaf"><a href="/about" title="About No Starch Press">About Us</a></li> <li class="last leaf"><a href="/contactus" title="Contact Us">Contact Us</a></li> </ul> <div class="region region-navigation"> <section id="block-uc-cart-cart" class="block block-uc-cart clearfix"> <h2 class="block-title"><a href="/cart"><span class="cart-block-icon-empty" title="View your shopping cart."></span></a><span class="cart-block-title-bar" title="Show/hide shopping cart contents.">Shopping cart<span class="cart-block-arrow arrow-down"></span></span></h2> <p class="cart-block-items collapsed uc-cart-empty">There are no products in your shopping cart.</p><table class="cart-block-summary"><tbody><tr><td class="cart-block-summary-items"><span class="num-items">0</span> Items</td><td class="cart-block-summary-total"><label>Total:</label> <span class="uc-price">$0.00</span></td></tr></tbody></table> </section> <section id="block-search-api-page-site-search" class="block block-search-api-page clearfix"> <form action="/programwithminecraft" method="post" id="search-api-page-search-form-site-search" accept-charset="UTF-8"><div><div class="form-item form-item-keys-2 form-type-textfield form-group"><input placeholder="Search" class="form-control form-text" type="text" id="edit-keys-2" name="keys_2" value="" size="15" maxlength="128" /> <label class="control-label element-invisible" for="edit-keys-2">Enter your keywords</label> </div><input type="hidden" name="id" value="2" /> <button class="icon glyphicon glyphicon-search btn-primary form-control btn form-submit" type="submit" id="edit-submit-2" name="op" value=""></button> <input type="hidden" name="form_build_id" value="form-ltP4xutLacOh4Ojq06FoZkQjjZUbQF_F8-kowem-1Q4" /> <input type="hidden" name="form_id" value="search_api_page_search_form_site_search" /> </div></form> </section> </div> </div> </nav> <div class="navbar-header"> <div class="logo-wrapper col-sm-6 hidden-xs"> <a class="logo navbar-btn pull-left" href="/" title="Home"> <img src="https://nostarch.com/sites/all/themes/nostarch/logo.png" alt="Home" class="img-responsive"/> </a> </div> <div class="logo-wrapper col-sm-6 hidden-xs"> <div class="region region-navigation"> <div class="region region-navigation"> <section id="block-uc-cart-cart" class="block block-uc-cart clearfix"> <h2 class="block-title"><a href="/cart"><span class="cart-block-icon-empty" title="View your shopping cart."></span></a><span class="cart-block-title-bar" title="Show/hide shopping cart contents.">Shopping cart<span class="cart-block-arrow arrow-down"></span></span></h2> <p class="cart-block-items collapsed uc-cart-empty">There are no products in your shopping cart.</p><table class="cart-block-summary"><tbody><tr><td class="cart-block-summary-items"><span class="num-items">0</span> Items</td><td class="cart-block-summary-total"><label>Total:</label> <span class="uc-price">$0.00</span></td></tr></tbody></table> </section> <section id="block-search-api-page-site-search" class="block block-search-api-page clearfix"> <form action="/programwithminecraft" method="post" id="search-api-page-search-form-site-search" accept-charset="UTF-8"><div><div class="form-item form-item-keys-2 form-type-textfield form-group"><input placeholder="Search" class="form-control form-text" type="text" id="edit-keys-2" name="keys_2" value="" size="15" maxlength="128" /> <label class="control-label element-invisible" for="edit-keys-2">Enter your keywords</label> </div><input type="hidden" name="id" value="2" /> <button class="icon glyphicon glyphicon-search btn-primary form-control btn form-submit" type="submit" id="edit-submit-2" name="op" value=""></button> <input type="hidden" name="form_build_id" value="form-ltP4xutLacOh4Ojq06FoZkQjjZUbQF_F8-kowem-1Q4" /> <input type="hidden" name="form_id" value="search_api_page_search_form_site_search" /> </div></form> </section> </div> </div> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="navbar-collapse collapse"> <nav role="navigation"> <ul class="menu nav navbar-nav"><ul class="menu nav navbar-nav"><li class="first leaf"><a href="/catalog.htm" title="Explore our catalog">Catalog</a></li> <li class="leaf"><a href="https://nostarch.com/merchandise-0" title="Merchandise">Merchandise</a></li> <li class="leaf"><a href="/blog" title="The No Starch Press blog">Blog</a></li> <li class="leaf"><a href="https://nostarch.com/early-access-program" title="Media contact">Early Access</a></li> <li class="leaf"><a href="/writeforus" title="Submit a book proposal">Write for Us</a></li> <li class="leaf"><a href="/about" title="About No Starch Press">About Us</a></li> <li class="last leaf"><a href="/contactus" title="Contact Us">Contact Us</a></li> </ul></ul> </nav> </div> </div> </div> </header> <div class="main-container container"> <header role="banner" id="page-header"> </header> <!-- /#page-header --> <div class="row"> <aside class="col-sm-3" role="complementary"> <div class="region region-sidebar-first well"> <section id="block-views-topics-block" class="block block-views clearfix"> <button class="btn btn-primary btn-block visible-xs vert-offset-top-2" data-toggle="collapse" data-target="#topics"><span class="glyphicon glyphicon-menu-down pull-left"></span> <span class="btn-text">Topics</span><span class="glyphicon glyphicon-menu-down pull-right"></span></button> <h2 class="block-title hidden-xs">Topics</h2> <div id="topics" class="view-content collapse dont-collapse animateCollapse"> <div class="view view-topics view-id-topics view-display-id-block view-dom-id-f0b4c0f61699924d5c5c46cf67be451e"> <div class="view-content"> <div class="item-list"> <ul> <li class="views-row views-row-1 views-row-odd views-row-first"> <div class="views-field views-field-name"> <span class="field-content"><a href="/catalog/art-photography-design">Art & Design</a></span> </div></li> <li class="views-row views-row-2 views-row-even"> <div class="views-field views-field-name"> <span class="field-content"><a href="/catalog/general-computing">General Computing</a></span> </div></li> <li class="views-row views-row-3 views-row-odd"> <div class="views-field views-field-name"> <span class="field-content"><a href="/catalog/security">Hacking & Computer Security</a></span> </div></li> <li class="views-row views-row-4 views-row-even"> <div class="views-field views-field-name"> <span class="field-content"><a href="/catalog/hardware-and-diy">Hardware / DIY</a></span> </div></li> <li class="views-row views-row-5 views-row-odd"> <div class="views-field views-field-name"> <span class="field-content"><a href="/catalog/kids">Kids</a></span> </div></li> <li class="views-row views-row-6 views-row-even"> <div class="views-field views-field-name"> <span class="field-content"><a href="/catalog/lego">LEGO®</a></span> </div></li> <li class="views-row views-row-7 views-row-odd"> <div class="views-field views-field-name"> <span class="field-content"><a href="/catalog/linux-bsd-unix">Linux & BSD</a></span> </div></li> <li class="views-row views-row-8 views-row-even"> <div class="views-field views-field-name"> <span class="field-content"><a href="/catalog/manga">Manga</a></span> </div></li> <li class="views-row views-row-9 views-row-odd"> <div class="views-field views-field-name"> <span class="field-content"><a href="/catalog/programming">Programming</a></span> </div></li> <li class="views-row views-row-10 views-row-even"> <div class="views-field views-field-name"> <span class="field-content"><a href="/catalog/python">Python</a></span> </div></li> <li class="views-row views-row-11 views-row-odd"> <div class="views-field views-field-name"> <span class="field-content"><a href="/catalog/rforall">R for All</a></span> </div></li> <li class="views-row views-row-12 views-row-even"> <div class="views-field views-field-name"> <span class="field-content"><a href="/catalog/science-math">Science & Math</a></span> </div></li> <li class="views-row views-row-13 views-row-odd"> <div class="views-field views-field-name"> <span class="field-content"><a href="/catalog/scratch">Scratch</a></span> </div></li> <li class="views-row views-row-14 views-row-even"> <div class="views-field views-field-name"> <span class="field-content"><a href="/catalog/system-administration">System Administration</a></span> </div></li> <li class="views-row views-row-15 views-row-odd views-row-last"> <div class="views-field views-field-name"> <span class="field-content"><a href="/catalog/early-access">Early Access</a></span> </div></li> </ul></div> </div> <div class="view-footer"> <style> <!--/*--><![CDATA[/* ><!--*/ .view-topics .item-list a {font-weight: bold;} .view-topics ul {padding-left: 20px;} /*--><!]]>*/ </style> </div> </div> </div> </section><section id="block-block-12" class="block block-block clearfix"> <div class="rounded_border_block"><span style="font-family:Arial,Helvetica,sans-serif"><strong><span style="font-size:12px"><span style="color:#c0392b"><a href="https://nostarch.com/about_ebooks.htm">FREE ebook edition with every print book purchased from nostarch.com!</a></span></span></strong></span></div> <p class="rtecenter"><span style="font-size:22px">+</span></p> <div class="rounded_border_block"><span style="font-family:Arial,Helvetica,sans-serif"><strong><span style="font-size:12px"><a href="https://nostarch.com/early-access-program"><span style="color:#c0392b">EARLY ACCESS lets you read full chapters months before a title's release date!</span></a></span></strong></span></div> </section> <section id="block-nostarch-custom-login-block" class="block block-nostarch-customclearfix"> <h2 class="block-title">User login</h2> <ul> <li><a href="/user">Log in</a></a></li> <li><a href="/user/register">Create account</a></a></li> </ul> </section> <section id="block-block-78" class="block block-block clearfix"> <script data-account="eeqOpWOUyZ" src="https://cdn.userway.org/widget.js"></script> </section> </div> </aside> <!-- /#sidebar-first --> <section class="col-sm-6" style=""> <a id="main-content"></a> <div class="region region-content"> <section id="block-system-main" class="block block-system clearfix"> <div class="ds-1col node node-product node-promoted view-mode-full clearfix"> <div class=""> <div class="field field-name-field-image-cache field-type-image field-label-hidden"><div class="field-items"><div class="field-item even"><div class="product-image"><div class="main-product-image"><a href="https://nostarch.com/sites/default/files/styles/uc_product_full/public/LTPWMCover.png?itok=pU_bidWD" title="Learn to Program with Minecraft" class="colorbox" rel="uc_image_0"><img class="img-responsive" src="https://nostarch.com/sites/default/files/styles/uc_product/public/LTPWMCover.png?itok=S4Oh4wKA" alt="Learn to Program with Minecraft" title="Learn to Program with Minecraft" /></a></div></div></div></div></div><div class="field field-name-entity-title field-type-ds field-label-hidden"><div class="field-items"><div class="field-item even"><h1 class="page-header">Learn to Program with Minecraft</h1></div></div></div><div class="field field-name-field-subtitle field-type-text field-label-hidden"><div class="field-items"><div class="field-item even">Transform Your World with the Power of Python</div></div></div><div class="field field-name-field-author field-type-text field-label-hidden"><div class="field-items"><div class="field-item even">by Craig Richardson</div></div></div><div class="field field-name-released-date field-type-ds field-label-hidden"><div class="field-items"><div class="field-item even">December 2015, 336 pp.</div></div></div><div class="field field-name-field-isbn13 field-type-text field-label-inline clearfix clearfix"><div class="field-label">ISBN-13: </div><div class="field-items"><div class="field-item even">9781593276706 </div></div></div><div class="field field-name-field-special field-type-text field-label-hidden"><div class="field-items"><div class="field-item even">Full Color</div></div></div><div class="add-to-cart"><form action="/programwithminecraft" method="post" id="uc-product-add-to-cart-form-343" accept-charset="UTF-8"><div><div id="uc_product_add_to_cart_form-343-attributes" class="attributes"><div class="attribute attribute-1 odd"><div class="form-item form-item-attributes-1 form-type-radios form-group"><div id="edit-attributes-1" class="form-radios"><div class="form-item form-item-attributes-1 form-type-radio radio"> <label class="control-label" for="edit-attributes-1-2"><input type="radio" id="edit-attributes-1-2" name="attributes[1]" value="2" checked="checked" class="form-radio" />Ebook (PDF, Mobi, and ePub), $23.95</label> </div></div></div></div></div><input type="hidden" name="qty" value="1" /> <input type="hidden" name="form_build_id" value="form-TM5NzO7hWP7m0oV3rAtx1oFyg6EOLUbk-Hzs3Ev_lP0" /> <input type="hidden" name="form_id" value="uc_product_add_to_cart_form_343" /> <div class="form-actions form-wrapper form-group" id="edit-actions"><button class="node-add-to-cart btn btn-success form-submit icon-before" type="submit" id="edit-submit-343" name="op" value="Add to cart"><span class="icon glyphicon glyphicon-plus" aria-hidden="true"></span> Add to cart</button> </div></div></form></div><div class="field field-name-product-menu field-type-ds field-label-hidden"><div class="field-items"><div class="field-item even"><div class="menu-wrapper"><ul class="menu nav"><li><a href="#content">Contents</a></li><li><a href="#reviews">Reviews</a></li><li><a href="#updates">Updates</a></li></ul></div></div></div></div><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><blockquote><p>“<i>Learn to Program With Minecraft</i> is 297 pages brimming with potential. It’s an excellent guide for Minecraft players wanting to expand their capabilities in the game and with programming. Highly recommended."<br /> —<b><a href="http://geekdad.com/2016/03/program-with-minecraft/" target="new">GeekDad</a></b></p></blockquote> <blockquote><p>“<i>Learn to Program with Minecraft</i> offers an incredibly user-friendly, intuitive, and innovative approach for learning the Python programming language.”<br /> —<b><a href="http://www.eetimes.com/author.asp?section_id=31&doc_id=1329136&" target="new">EE Times</a></b></p></blockquote> <ul class="resources"> <strong> <li><u><a href="/download/LTPWM_Updated_Ch1.pdf" target="new"><font color="blue">Download Chapter 1: Setting Up for Your Adventure</font></a></u></li> <li><u><a href="/download/samples/LearnToProgramWithMinecraft_sample_ch7.pdf" target="new"><font color="blue">Download Chapter 7: Dance Parties and Flower Parades with while Loops</font></a></u></li> <li><u><a href="/download/code/MinecraftTools.zip" target="new"><font color="blue">Download the setup files for Windows (Minecraft Tools.zip)</font></a> </u></li> <li><u><a href="/download/code/MinecraftToolsMac.zip" target="new"><font color="blue">Download the setup files for Mac OS (Minecraft Tools Mac.zip)</font></a></u></li> <li><u><a href="/download/code/LearntoProgramwithMinecraftCode.zip"><font color="blue">Download the code used in the book and solutions to the Minecraft Missions</font></a></u></li> <li><b><a href="https://www.nostarch.com/minecrafthelp"><u><font color="blue">Troubleshooting<br /> </font></u></a></b></li></strong> </ul> <!-- <font color = "red"><strong>Get 30% off with the coupon code BLOCKPARTY</strong></font> --><p> 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? </p> <p>In <i>Learn to Program with Minecraft®</i>, you’ll do all this and more with the power of Python, a free language used by millions of professional and first-time programmers!</p> <p>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. </p> <p>You’ll also write programs that:</p> <ul> <li>Take you on an automated teleportation tour around your Minecraft world </li><li>Build massive monuments, pyramids, forests, and more in a snap! </li><li>Make secret passageways that open when you activate a hidden switch </li><li>Create a spooky ghost town that vanishes and reappears elsewhere </li><li>Show exactly where to dig for rare blocks </li><li>Cast a spell so that a cascade of flowers (or dynamite if you’re daring!) follows your every move </li><li>Make mischief with dastardly lava traps and watery curses that cause huge floods </li></ul> <p>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!</p> <p> <b>Requires: Minecraft Java Edition; Windows 7 or later; OS X 10.10 or later; or a Raspberry Pi.</b><br /> <b><u><a href="/download/resources/LTPWM_Resources.pdf" target="new">Click here for details about system requirements.</a></u></b></p> <p> <b>Uses Python 3</b></p> <p></p></div></div></div><div class="field field-name-field-author-bio field-type-text-long field-label-abovec"><div class="field-label">Author Bio </div><div class="field-items"><div class="field-item even"><p><b>Craig Richardson</b> 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.</p> </div></div></div><div class="field field-name-field-toc field-type-text-long field-label-abovec" id="content"><div class="field-label">Table of contents </div><div class="field-items"><div class="field-item even"><p><b>Introduction</b><br /> <b>Chapter 1:</b> Setting Up for Your Adventure<br /> <b>Chapter 2:</b> Teleporting with Variables<br /> <b>Chapter 3:</b> Building Quickly and Traveling Far with Math<br /> <b>Chapter 4:</b> Chatting with Strings<br /> <b>Chapter 5:</b> Figuring Out What's True and False with Booleans<br /> <b>Chapter 6:</b> Making Mini-Games with if Statements<br /> <b><a href="/download/samples/LearnToProgramWithMinecraft_sample_ch7.pdf" target="new">Chapter 7: Dance Parties and Flower Parades with while Loops</a></b><br /> <b>Chapter 8:</b> Functions Give You Superpowers<br /> <b>Chapter 9:</b> Hitting Things with Lists and Dictionaries<br /> <b>Chapter 10:</b> Minecraft Magic with for Loops<br /> <b>Chapter 11:</b> Saving and Loading Buildings with Files and Modules<br /> <b>Chapter 12:</b> Getting Classy with Object-Oriented Programming<br /> <b>Afterword</b><br /> <b>Block ID Cheat Sheet</b></p> <p>View the detailed <a href="/download/samples/LearnToProgramWithMinecraft_dTOC.pdf" target="new"><b>Table of Contents</b></a> (PDF)<br /> View the <a href="/download/samples/LearnToProgramWithMinecraft_Index.pdf" target="new"><b>Index</b></a> (PDF)</p> </div></div></div><div class="field field-name-field-reviews field-type-text-long field-label-abovec" id="reviews"><div class="field-label">Reviews </div><div class="field-items"><div class="field-item even"><p>Watch author Craig Richardson on <b><a href="https://twit.tv/shows/triangulation/episodes/243" target="new">This Week in Tech with Leo Laporte</a></b>!</p> <p>"With this book, programming can be accomplished by anyone who is able to use a computer."<br /> —<b><a href="https://gamingintel.com/2018/04/07/learn-to-program-with-minecraft-book-review/" target="new">Gaming INTEL</a></b></p> <p>"As educators, you know that kids love playing Minecraft. This book makes it easy for you and your middle and high school students to learn how to program in Python through very engaging Minecraft projects."<br /> —<b><a href="https://www.edsurge.com/news/2016-06-08-6-summer-reads-that-will-teach-you-and-your-students-how-to-code" target="new">EdSurge</a></b></p> <p>"Of all the diverse No Starch Press programming guides, this one may turn out to be the most effective, as a teaching tool, for that special case where a person is already interested in Minecraft and wants to learn Python."<br /> —<b><a href="http://scienceblogs.com/gregladen/2016/01/01/learn-python-using-minecraft/" target="new">Science Blogs</a></b></p> <p>"In this beginner friendly book...you will learn how to do cool things in Minecraft using the Python programming language. No prior programming experience is needed. Author Craig Richardson shows you how to install Python (it's free) on your Mac, PC, or Raspberry Pi. The book has step-by-step instructions to show you how to teleport your character, create palaces and other structures with a few lines of code, stack blocks, duplicate villages and geography, and a lot more."<br /> —<b><a href="https://boingboing.net/2016/01/13/new-book-teaches-python-progra.html" target="new">Boing Boing</a></b></p> <p>"Shows how to use the Python programming environment to take a teleportation trip around the game’s landscape, create forests and make secret passageways...the class might think they’re playing a popular game, but beneath the surface, [they] will be learning about object oriented programming, Boolean loops, 'if' statements and more."<br /> —<b><a href="http://blogs.scholastic.com/techtools/2016/01/coding-for-kids.html#.Vp5-IvkrKHt" target="new">Scholastic's Tech Tools blog</a></b></p> <p>“Readers who work their way through the book will develop a strong working knowledge of Python basics, which can be employed to continue making modifications to Minecraft or be easily transferred to other applications. Not only would this book be great for motivated individuals, but teachers, tech coaches, librarians, and club leaders could use it as a basis for conducting their own classes and workshops.”<br /> —<b>School Library Connection</b></p> <p>"I really love books like this, because they feed upon the interests and enthusiasm which are already present...and builds upon it."<br /> —<b><a href="https://pihw.wordpress.com/reviews/learn-to-program-with-minecraft-by-craig-richardson/" target="new">Meltwater's Raspberry Pi Hardware</a></b></p> <p>"For a kid who likes Minecraft, the fact that everything is applied to it makes it a compelling way to learn...does a very good job breaking down the material, builds on concepts well, and offers plenty of opportunity for critical thinking through 'missions.'"<br /> —<b>Children's Technology Review newsletter</b></p> <p>"A fantastic book."<br /> —<b><a href="http://importpython.com/blog/post/learn-to-program-with-minecraft" target="new">Import Python</a></b></p> <p>"This book will be fantastic in helping students engage with the Python coding language."<br /> —<a href="http://www.sla.org.uk/the-school-librarian.php" target="new"><b>The School Librarian</b></a></p> <p>"It seems like the best target audience would be a high school or undergraduate class in which the students are quite likely to be familiar with Minecraft already and you wish to leverage that knowledge to teach them programming. In that case, this book is clearly a good fit."<br /> —<b>Computing Reviews</b></p> <p>"Applies software development to Minecraft worlds so learners can quickly build structures, transport themselves around the environment and create mini-games...The book is perfect for anyone who primarily wants to learn how to program and enjoys Minecraft."<br /> —<b><a href="http://www.optimalworks.net/blog/2016/web-development/program-with-minecraft" target="new">Optimalworks</a></b></p> <p>"No Starch Press has great programming books for kids and teens, and <i>Learn to Program with Minecraft</i> is a solid addition to middle school and YA collections."<br /> —<b><a href="https://momreadit.wordpress.com/2016/05/18/minecraft-teaches-kids-python-empowers-future-programmers/" target="new">Mom Read It</a></b></p> <p>GeekMom featured <i>Learn to Program with Minecraft</i> in their <b><a href="https://geekdad.com/2017/11/gift-guide-for-the-minecraft-fan/" target="new">Gift Guide: For The Minecraft Fan</a></b>!</p> </div></div></div><div class="field field-name-field-extra-stuff field-type-text-long field-label-abovec"><div class="field-label">Extra Stuff </div><div class="field-items"><div class="field-item even"><p>Check out the <i>Learn to Program with Minecraft</i> video!</p> <iframe width="420" height="315" src="https://www.youtube.com/embed/BwDHv4hm46U" frameborder="0" allowfullscreen=""></iframe></div></div></div><div class="field field-name-field-updates field-type-text-long field-label-abovec" id="updates"><div class="field-label">Updates </div><div class="field-items"><div class="field-item even"><p>In Chapter 7, in the section "Nested if Statements and while Loops," the line marked (1) in the second code listing should read: <code>if userAnswer == "yes":</code></p> <p>In Chapter 11, Listing 11-3, the line marked (2) should read: <code>block = mc.getBlockWithData(x1 + column, y1 + row, z1 + depth)</code>.</p> </div></div></div> </div> </div> </section> <section id="block-shariff-shariff-block" class="block block-shariff clearfix"> <div class="shariff" data-services="["facebook","print","twitter"]" data-theme="colored" data-orientation="horizontal" data-twitter-via="nostarch" data-lang="en"></div> </section> </div> </section> <aside class="col-sm-3" role="complementary"> <div class="region region-sidebar-second"> <section id="block-system-navigation" class="block block-system block-menu clearfix"> <h2 class="block-title">Navigation</h2> <ul class="menu nav"><li class="first last leaf"><a href="/user" title="">My account</a></li> </ul> </section> <section id="block-block-52" class="block block-block clearfix"> <p><a href="/mailchimp/subscribe">Want sweet deals? <br />Sign up for our newsletter.</a></p> </section> <section id="block-views-related-products-block" class="block block-views clearfix"> <h2 class="block-title">You might also like...</h2> <div class="view view-related-products view-id-related_products view-display-id-block auto-clear view-dom-id-66affa23ea84a44e63d8a8c061132dac"> <div class="view-content"> <div class="views-row views-row-1 views-row-odd views-row-first col-xs-6 col-sm-6 col-md-12"> <div class="views-field views-field-field-image-cache"> <div class="field-content"><a href="/mysql-crash-course"><img class="img-responsive" src="https://nostarch.com/sites/default/files/styles/product/public/MySQL_CrashCourse_COMP.jpg?itok=Ux0AUJ2f" width="90" height="119" alt="MySQL Crash Course Cover" title="MySQL Crash Course Cover" /></a></div> </div> </div> <div class="views-row views-row-2 views-row-even col-xs-6 col-sm-6 col-md-12"> <div class="views-field views-field-field-image-cache"> <div class="field-content"><a href="/legoadventure2"><img class="img-responsive" src="https://nostarch.com/sites/default/files/styles/product/public/LEGOAdventure2_cover_web.jpg?itok=ptkWkPuQ" width="90" height="112" alt="The LEGO Adventure Book, Vol. 2" title="The LEGO Adventure Book, Vol. 2" /></a></div> </div> </div> <div class="views-row views-row-3 views-row-odd col-xs-6 col-sm-6 col-md-12"> <div class="views-field views-field-field-image-cache"> <div class="field-content"><a href="/graph-algorithms-fun-way"><img class="img-responsive" src="https://nostarch.com/sites/default/files/styles/product/public/GraphAlgorithmsFW_frontcover.png?itok=7qCWWLu3" width="90" height="119" alt="Graph Algorithms the Fun Way placeholder cover" title="Graph Algorithms the Fun Way placeholder cover" /></a></div> </div> </div> <div class="views-row views-row-4 views-row-even col-xs-6 col-sm-6 col-md-12"> <div class="views-field views-field-field-image-cache"> <div class="field-content"><a href="/javascriptforkids"><img class="img-responsive" src="https://nostarch.com/sites/default/files/styles/product/public/jsfk_cover-front_final.png?itok=QtUenPFm" width="90" height="119" alt="JavaScript for Kids" title="JavaScript for Kids" /></a></div> </div> </div> <div class="views-row views-row-5 views-row-odd col-xs-6 col-sm-6 col-md-12"> <div class="views-field views-field-field-image-cache"> <div class="field-content"><a href="/doingmathwithpython"><img class="img-responsive" src="https://nostarch.com/sites/default/files/styles/product/public/pymath_cover-front_new.png?itok=zoJc66H5" width="90" height="119" alt="Doing Math with Python" title="Doing Math with Python" /></a></div> </div> </div> <div class="views-row views-row-6 views-row-even views-row-last col-xs-6 col-sm-6 col-md-12"> <div class="views-field views-field-field-image-cache"> <div class="field-content"><a href="/smallbasic"><img class="img-responsive" src="https://nostarch.com/sites/default/files/styles/product/public/smallbasic_cover-front_0.png?itok=iOZowtHI" width="90" height="119" alt="Learn to Program with Small Basic" title="Learn to Program with Small Basic" /></a></div> </div> </div> </div> </div> </section> </div> </aside> <!-- /#sidebar-second --> </div> </div> <footer class="footer container"> <div class="region region-footer"> <section id="block-block-16" class="block block-block clearfix"> <div id="footer-links"> <br> <a class="footer-links" href="/about.htm">About Us</a> <span class="footer-divider">|</span> <a class="footer-links" href="/Jobs.htm">Jobs!</a> <span class="footer-divider">|</span> <a class="footer-links" href="/distribution.htm">Sales and Distribution</a> <span class="footer-divider">|</span> <a class="footer-links" href="/rights">Rights</a> <span class="footer-divider">|</span> <a class="footer-links" href="/media.htm">Media</a> <span class="footer-divider">|</span> <a class="footer-links" href="/academic.htm">Academic Requests</a> <span class="footer-divider">|</span> <a class="footer-links" href="/conferences.htm">Conferences</a> <span class="footer-divider">|</span> <a class="footer-links" href="/orderfaq.htm">FAQ</a> <span class="footer-divider">|</span> <a class="footer-links" href="/contactus">Contact Us</a> <span class="footer-divider">|</span> <a class="footer-links" href="/writeforus">Write for Us</a> <span class="footer-divider">|</span> <a class="footer-links" href="/privacypolicy.htm">Privacy</a> </div> </section> <section id="block-nostarch-custom-custom-footer-copyright" class="block block-nostarch-custom clearfix"> <div class="block-block"> <p>Copyright 2025. No Starch Press, Inc</p> </div> </section> </div> </footer> <script src="https://nostarch.com/sites/all/modules/contrib/addthis/addthis.js?stn5l0"></script> <script src="https://nostarch.com/sites/all/libraries/shariff/shariff.min.js?stn5l0"></script> <script src="https://nostarch.com/sites/all/themes/contrib/bootstrap/js/bootstrap.js?stn5l0"></script> <!-- Reddit Pixel --> <script> !function(w,d){if(!w.rdt){var p=w.rdt=function(){p.sendEvent?p.sendEvent.apply(p,arguments):p.callQueue.push(arguments)};p.callQueue=[];var t=d.createElement("script");t.src="https://www.redditstatic.com/ads/pixel.js",t.async=!0;var s=d.getElementsByTagName("script")[0];s.parentNode.insertBefore(t,s)}}(window,document);rdt('init','t2_6acpsf9y');rdt('track', 'PageVisit'); </script> <!-- DO NOT MODIFY UNLESS TO REPLACE A USER IDENTIFIER --> <!-- End Reddit Pixel --> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9263c7531d56fd69',t:'MTc0Mjk2MjAyMC4wMDAwMDA='};var a=document.createElement('script');a.nonce='';a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body> </html>