{"id":21972,"date":"2016-01-01T11:28:57","date_gmt":"2016-01-01T17:28:57","guid":{"rendered":"http:\/\/scienceblogs.com\/gregladen\/?p=21972"},"modified":"2016-01-01T11:28:57","modified_gmt":"2016-01-01T17:28:57","slug":"learn-python-using-minecraft","status":"publish","type":"post","link":"https:\/\/gregladen.com\/blog\/2016\/01\/01\/learn-python-using-minecraft\/","title":{"rendered":"Learn Python Using Minecraft"},"content":{"rendered":"<p>Minecraft is a gaming world. Or, if you like, a &#8220;sandbox.&#8221;  This is a three dimensional world in which characters do things, all sorts of things. The context for the world of Minecraft is very open ended.  The player builds things, moves things, gets things, does things, in a way that makes any one gamer&#8217;s game potentially very different from any other gamer&#8217;s game.<\/p>\n<p>You can buy Minecraft in various forms such as an <a rel=\"nofollow\" href=\"http:\/\/www.amazon.com\/gp\/product\/B00BU3ZLJQ\/ref=as_li_tl?ie=UTF8&#038;camp=1789&#038;creative=9325&#038;creativeASIN=B00BU3ZLJQ&#038;linkCode=as2&#038;tag=grlasbl0a-20&#038;linkId=HY4DIYGZT2RFTAYX\">XBox 360 version<\/a><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ir-na.amazon-adsystem.com\/e\/ir?t=grlasbl0a-20&#038;l=as2&#038;o=1&#038;a=B00BU3ZLJQ\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/>.  It comes in Lego form (<a rel=\"nofollow\" href=\"http:\/\/www.amazon.com\/gp\/product\/B00NW2Q6ZG\/ref=as_li_tl?ie=UTF8&#038;camp=1789&#038;creative=9325&#038;creativeASIN=B00NW2Q6ZG&#038;linkCode=as2&#038;tag=grlasbl0a-20&#038;linkId=GO3OY46OXLC4YWMR\">for example, this<\/a><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ir-na.amazon-adsystem.com\/e\/ir?t=grlasbl0a-20&#038;l=as2&#038;o=1&#038;a=B00NW2Q6ZG\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/>), and you can get a Minecraft cloud server version at <a href=\"https:\/\/minecraft.net\/\">Minecraft.net<\/a>.<\/p>\n<p>If you install Minecraft from Minecraft.net (about 30 bucks) and have Python 3, Java, the Minceraft Python API, and a Spigot Minecraft Server, you can program your own versions of the game using Python programming\/scripting language.<\/p>\n<p>But how? How do you do that?<\/p>\n<p>Well, you can get <a rel=\"nofollow\" href=\"http:\/\/www.amazon.com\/gp\/product\/1593276702\/ref=as_li_tl?ie=UTF8&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1593276702&#038;linkCode=as2&#038;tag=grlasbl0a-20&#038;linkId=HIWJVTBC7FX27EU6\">Learn to Program with Minecraft: Transform Your World with the Power of Python<\/a><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ir-na.amazon-adsystem.com\/e\/ir?t=grlasbl0a-20&#038;l=as2&#038;o=1&#038;a=1593276702\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/>. This book is intended to teach programming, in the Minecraft setting.  The book is designed for kids 10 years and older, though I&#8217;m sure some younger kids can use it. Also, it must be admitted that a learning to program book like this may be most valuable for adults who are not coders but want to learn some coding, and happen to be gamers and like Minecraft.<\/p>\n<p>The book, new on the market, provides excellent instructions for setting up all that stuff mentioned above.  Everything should work on a Windows machine, on Mac OS X, and <a href=\"http:\/\/www.howtogeek.com\/198476\/how-to-install-minecraft-on-ubuntu-or-any-other-linux-distribution\/\">Linux<\/a>.<\/p>\n<p>The programming you do with this book is pretty sophisticated.  You learn to create palaces, pyramids, to teleoport players around, to stack blocks, interact with Minecraft&#8217;s chat feature, blow stuff up, cast spells, and replicate sections of the Minecraft countryside.<\/p>\n<p>Here is what is interesting about this approach. Python programming is pretty basic, and pretty useful, but one has to do a lot of work to develop something slick and fancy and highly functional (counting working video games or interfaces as highly functional).  But working with the existing Minecraft system, via the API, allows some relatively simple programming to produce impressive results. This is &#8220;Hello World&#8221; on steroids, at the very least.<\/p>\n<p>Of all the diverse No Starch Press programming guides, this one may turn out to be the most effective, as a teaching tools, for that special case where a person is already interested in Minecraft and wants to learn Python.<\/p>\n<p>Here is the Table of Contents:<\/p>\n<p>Introduction<br \/>\nChapter 1: Setting Up for Your Adventure<br \/>\nChapter 2: Teleporting with Variables<br \/>\nChapter 3: Building Quickly and Traveling Far with Math<br \/>\nChapter 4: Chatting with Strings<br \/>\nChapter 5: Figuring Out What&#8217;s True and False with Booleans<br \/>\nChapter 6: Making Mini-Games with if Statements<br \/>\nChapter 7: Dance Parties and Flower Parades with while Loops<br \/>\nChapter 8: Functions Give You Superpowers<br \/>\nChapter 9: Hitting Things with Lists and Dictionaries<br \/>\nChapter 10: Minecraft Magic with for Loops<br \/>\nChapter 11: Saving and Loading Buildings with Files and Modules<br \/>\nChapter 12: Getting Classy with Object-Oriented Programming<br \/>\nAfterword<br \/>\nBlock ID Cheat Sheet<\/p>\n<p>The author, Craig Richardson, is a teacher of Python, former high school computing science teacher, and has been involved with the Raspberry Pi Foundation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Minecraft is a gaming world. Or, if you like, a &#8220;sandbox.&#8221; This is a three dimensional world in which characters do things, all sorts of things. The context for the world of Minecraft is very open ended. The player builds things, moves things, gets things, does things, in a way that makes any one gamer&#8217;s &hellip; <a href=\"https:\/\/gregladen.com\/blog\/2016\/01\/01\/learn-python-using-minecraft\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Learn Python Using Minecraft<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":21973,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[1146,40,2415,974,976,57],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p5fhV1-5Io","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts\/21972"}],"collection":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/comments?post=21972"}],"version-history":[{"count":0,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts\/21972\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/media?parent=21972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/categories?post=21972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/tags?post=21972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}