Created
November 12, 2016 14:25
-
-
Save uktechreviews/f3c2925cfd58dca0a01b180083763f4c to your computer and use it in GitHub Desktop.
Christmas Python Activities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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