Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- profondeur = 3
- largeur = 2
- hauteur = 2
- function xPlace()
- local data = turtle.getItemDetail()
- if data then
- turtle.place()
- else
- pos = pos + 1
- turtle.select(pos)
- turtle.place()
- end
- end
- function xProcessProfondeur()
- for n=1,profondeur do
- turtle.back()
- if debut == 0 then
- xPlace()
- else
- debut = 0
- end
- end
- end
- function xTurnLeft()
- turtle.turnLeft()
- turtle.back()
- xPlace()
- turtle.turnLeft()
- end
- function xTurnRight()
- debut = 1
- turtle.turnRight()
- turtle.back()
- turtle.turnRight()
- end
- function xProcessLargeur()
- l = 0
- for m=1,largeur do
- xProcessProfondeur()
- xTurnLeft()
- xProcessProfondeur()
- xTurnRight()
- l = l + 2
- end
- end
- function xTurnUp()
- while q > 0 do
- turtle.up()
- q = q - 1
- end
- end
- function xTurnDown()
- for n=1,1 do
- turtle.down()
- end
- wThrow()
- end
- function xSuckUp()
- pos = 1
- turtle.suckUp()
- end
- function xGoBack()
- turtle.turnLeft()
- while l >= 1 do
- turtle.forward()
- l = l - 1
- end
- turtle.turnRight()
- t = q
- while q > 0 do
- turtle.up()
- q = q - 1
- end
- q = t
- xSuckUp()
- for v=1,p do
- turtle.down()
- end
- end
- p = 0
- q = 1
- debut = 1
- pos = 1
- turtle.select(pos)
- for p=1,hauteur do
- xProcessLargeur()
- xGoBack()
- turtle.down()
- q = q + 1
- p = p + 1
- end
- xTurnUp()
Advertisement
Add Comment
Please, Sign In to add comment