from mcpi.minecraft import Minecraft
mc=Minecraft.create()
def plantTree(x,y,z):
    mc.setBlocks(x+1,y+2,z,x+3,y+5,z+2,57)
    mc.setBlocks(x+2,y,z+1,x+2,y+4,z+1,17)
x,y,z=mc.player.getPos()
for i in range(10):
    for j in range(10):
        for k in range(10):
            plantTree(x+i*j,y+j*k,z+i*k)