Just bought this book by +Martin O_Hanl

Just bought this book by <span class="proflinkWrapper"><span class="proflinkP...
Tim HuttonTim Hutton - 2015-10-14 20:29:28+0000 - Updated: 2015-10-14 20:29:28+0000
Just bought this book by +Martin O'Hanlon. Simple instructions on how to program Minecraft to do cool things like build structures and play games, in Python. Highly recommended.
www.wiley.com/buy/9781118946916

As an example of how easy it is, here's a program that builds a glass walkway under your feet as you move along:

import mcpi.minecraft as minecraft
import mcpi.block as block

mc = minecraft.Minecraft.create()

while True:
  p = mc.player.getTilePos()
  mc.setBlocks( p.x-1, p.y-1, p.z-1, p.x+1, p.y-1, p.z+1, block.GLASS.id )

www.wiley.com/buy/9781118946916 A montage of some of the projects in Adventures in Minecraft.

Shared with: Public, Martin O'Hanlon

This post was originally on Google+