http://python-for-minecraft.readthedocs.org/sv/latest/chapter1/
Blockguide
http://python-for-minecraft.readthedocs.org/sv/latest/block_cheat_sheet/
from mc import * from time import * def hus(minecraft, x, y, z, b, h, d, vaggBlock, golvBlock, takBlock): minecraft.setBlocks(x, y, z, x + b, y, z + d, golvBlock) minecraft.setBlocks(x, y + 1, z, x + b, y + h, z + d, vaggBlock) minecraft.setBlocks(x + 1, y + 1, z + 1, x + b - 1, y + h, z + d - 1, AIR.id) minecraft.setBlocks(x, y + h + 1, z, x + b, y + h + 1, z + d, takBlock) for xp in range(x+2, x+b, 2): minecraft.setBlock(xp, y + h/2, z, GLASS_PANE.id) minecraft.setBlock(xp, y + 1 + h/2, z, GLASS_PANE.id) minecraft.setBlock(xp, y + h/2, z + d, GLASS_PANE.id) minecraft.setBlock(xp, y + 1 + h/2, z + d, GLASS_PANE.id) for zp in range(z+2, z+d, 2): minecraft.setBlock(x, y + h/2, zp, GLASS_PANE.id) minecraft.setBlock(x, y + 1 + h/2, zp, GLASS_PANE.id) minecraft.setBlock(x + b, y + h/2, zp, GLASS_PANE.id) minecraft.setBlock(x + b, y + 1 + h/2, zp, GLASS_PANE.id) def hoghus(minecraft, x, y, z, b, h, d, antalVaningar, vaggBlock, golvBlock, takBlock): for i in range(antalVaningar): hus(minecraft, x, i*(1+h), z, b, h, d, vaggBlock, golvBlock, takBlock) minecraft = Minecraft() pos = minecraft.player.getTilePos() for i in range(10): for j in range(10): hoghus(minecraft, pos.x + i*20 + 5, pos.y, pos.z + j*30 + 5, 10, 4, 15, 10, BRICK_BLOCK.id, STONE_BRICK.id, STONE_SLAB.id)