from mcpi.minecraft import Minecraft
mc=Minecraft.create()
name = input("Enter your name")
ID= mc.getPlayerEntityId(name)
pos = mc.entity.getTilePos(ID)
x,y,z = pos.x,pos.y,pos.z
def setShip2(x,y,z):
   n = 10
   m = 35,8
   mc.setBlocks(x+2,y-1,z+4,x-2,y-1,z-4-n,5,5)
   mc.setBlocks(x+3,y,z+4,x-3,y,z-4-n,5,5)
   mc.setBlocks(x+3,y+1,z+5,x-3,y+1,z-5-n,5,5)
   mc.setBlocks(x+3,y+2,z+5,x-3,y+2,z-6-n,5,5)
   mc.setBlocks(x+3,y+3,z+6,x-3,y+3,z-7-n,5,5)
   mc.setBlocks(x+3,y+4,z+6,x-3,y+4,z-8-n,5,5)
   mc.setBlocks(x,y+4,z-7,x,y+4,z-10-n,5,5)
   mc.setBlocks(x+2,y+4,z+5,x-2,y+4,z-7-n,0)
   mc.setBlocks(x+2,y+3,z+5,x-2,y+3,z-5-n,0)
   mc.setBlocks(x+4,y+3,z+6,x-4,y+4,z-4-n,0)
   mc.setBlocks(x-3,y+3,z+2,x+3,y+5,z+6,5,5)
   mc.setBlocks(x-2,y+3,z+1,x+2,y+4,z+5,0)
   mc.setBlocks(x-2,y+4,z+6,x+2,y+4,z+6,102)
   mc.setBlocks(x+2,y+4,z+2,x-1,y+3,z+2,5,5)
   mc.setBlocks(x-2,y+3,z+2,x-2,y+3,z+2,183)
   mc.setBlocks(x+4,y+3,z+1,x+4,y+3,z-4-n,190)
   mc.setBlocks(x-4,y+3,z+1,x-4,y+3,z-4-n,190)
   mc.setBlocks(x-3,y+4,z-4-n,x-3,y+4,z-7-n,190)
   mc.setBlocks(x+3,y+4,z-4-n,x+3,y+4,z-7-n,190)
   mc.setBlocks(x+2,y+1,z+4,x-2,y+1,z-4-n,0)
   mc.setBlocks(x+2,y,z+3,x-2,y,z-3-n,0)
   mc.setBlocks(x+4,y+2,z+1,x-4,y+2,z-14,5,5)
   mc.setBlocks(x+4,y+1,z-13,x+4,y+1,z,5,5)
   mc.setBlocks(x-4,y+1,z-13,x-4,y+1,z,5,5)
   mc.setBlocks(x+3,y+3,z-14,x+3,y+3,z-14,190)
   mc.setBlocks(x-3,y+3,z-14,x-3,y+3,z-14,190)
   mc.setBlocks(x+3,y+3,z-14,x+3,y+4,z-14,190)
   mc.setBlocks(x,y+3,z-4,x,y+20,z-4,5,5)
   mc.setBlocks(x+5,y+17,z-5,x-5,y+17,z-5,5,5)
   mc.setBlocks(x+4,y+8,z-5,x-4,y+8,z-5,5,5)
   mc.setBlocks(x,y+3,z-12,x,y+13,z-12,5,5)
   mc.setBlocks(x-3,y+6,z-12,x+3,y+6,z-12,5,5)
   mc.setBlocks(x-4,y+11,z-13,x+4,y+11,z-13,5,5)
   mc.setBlocks(x-5,y+15,z-6,x+5,y+17,z-6,m)
   mc.setBlocks(x-4,y+11,z-7,x+4,y+14,z-7,m)
   mc.setBlocks(x-3,y+8,z-6,x+3,y+10,z-6,m)
   mc.setBlocks(x-4,y+8,z-14,x+4,y+10,z-14,m)
   mc.setBlocks(x-3,y+6,z-13,x+3,y+7,z-13,m)
   mc.setBlocks(x+3,y+3,z-17,x+3,y+5,z-18,0)
   mc.setBlocks(x-3,y+3,z-17,x-3,y+5,z-18,0)
   mc.setBlocks(x+2,y+4,z-18,x+2,y+5,z-18,0)
   mc.setBlocks(x-2,y+4,z-18,x-2,y+5,z-18,0)
   mc.setBlocks(x+2,y+4,z-17,x+2,y+4,z-17,5,5)
   mc.setBlocks(x-2,y+4,z-17,x-2,y+4,z-17,5,5)
   mc.setBlocks(x,y+5,z-20,x,y+5,z-22,5,5)
   mc.setBlocks(x,y+6,z+3,x,y+6,z+3,192)
   mc.setBlocks(x,y+7,z+3,x,y+7,z+3,96)
   mc.setBlocks(x+3,y+6,z+2,x+3,y+6,z+6,190)
   mc.setBlocks(x+3,y+6,z+6,x-3,y+6,z+6,190)
   mc.setBlocks(x-3,y+6,z+2,x-3,y+6,z+6,190)
   mc.setBlocks(x+1,y,z+1,x+1,y,z+1,5,5)
   mc.setBlocks(x,y,z+1,x,y+2,z+1,5,5)
   mc.setBlocks(x+2,y,z+3,x+1,y,z+3,54)
   mc.setBlocks(x-2,y,z+3,x-1,y,z+3,54)
   mc.setBlocks(x-2,y,z-11,x-1,y,z-2,171,14)
   mc.setBlocks(x-1,y,z-11,x-1,y,z-2,171)
   mc.setBlocks(x-3,y+1,z-7,x-3,y+1,z-2,50)
   mc.setBlocks(x+3,y+1,z-7,x+3,y+1,z-7,50)
   mc.setBlocks(x+1,y+3,z+4,x+0,y+3,z+4,171,14)
   mc.setBlocks(x+1,y+3,z+5,x+0,y+3,z+5,171)
   mc.setBlocks(x-1,y+3,z+5,x-2,y+3,z+5,54)
   mc.setBlocks(x,y+2,z+1,x+3,y+2,z+1,0)
   mc.setBlocks(x+1,y+3,z-1,x+2,y+3,z-1,5,5)
   mc.setBlocks(x+1,y+4,z,x+2,y+4,z,5,5)
   mc.setBlocks(x+1,y+5,z+1,x+2,y+5,z+1,5,5)
   mc.setBlocks(x+2,y+3,z+5,x+2,y+3,z+5,47)
setShip2(x,y,z)
