Skip to content

Instantly share code, notes, and snippets.

@uktechreviews
Created November 12, 2016 14:25
Show Gist options
  • Save uktechreviews/f3c2925cfd58dca0a01b180083763f4c to your computer and use it in GitHub Desktop.
Save uktechreviews/f3c2925cfd58dca0a01b180083763f4c to your computer and use it in GitHub Desktop.
Christmas Python Activities
## Gingerbread house by Spencer Organ
import mcpi.minecraft as minecraft
import mcpi.block as block
mc=minecraft.Minecraft.create()
x,y,z=mc.player.getPos()
x+=2
mc.setBlocks(x,y,z,x+6,y+3,z+6,block.WOOL.id,12)
mc.setBlocks(x+1,y-1,z+1,x+5,y+2,z+5,block.AIR)
mc.setBlocks(x+1,y-1,z+1,x+5,y-1,z+5,block.WOOL.id,1)
mc.setBlocks(x,y,z+3,x,y+1,z+3,block.AIR.id)
y+=3
mc.setBlocks(x+1,y+1,z,x+5,y,z+6,block.WOOL.id,12)
mc.setBlocks(x+2,y+2,z,x+4,y+1,z+6,block.WOOL.id,12)
mc.setBlocks(x+3,y+3,z,x+3,y+2,z+6,block.WOOL.id,12)
mc.setBlocks(x+3,y+4,z,x+3,y+5,z,block.WOOL.id,12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment