Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --STEEL TANK = 189 STEEL GLASS= 195
- function selectTank()
- if turtle.getItemCount(1) == 0 then
- if turtle.getItemCount(2) > 0 then
- turtle.select(2)
- else
- if turtle.getItemCount(3) > 0 then
- turtle.select(3)
- else
- turtle.select(4)
- end
- end
- else
- turtle.select(1)
- end
- end
- function selectGlass()
- if turtle.getItemCount(5) == 0 then
- if turtle.getItemCount(6) > 0 then
- turtle.select(6)
- else
- if turtle.getItemCount(7) > 0 then
- turtle.select(7)
- else
- turtle.select(8)
- end
- end
- else
- turtle.select(5)
- end
- end
- --CREA LA BASE
- turtle.up()
- turtle.forward()
- for i = 1, 4 do
- for a = 1, 9 do
- selectTank()
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- for b = 1,9 do
- selectTank()
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- end
- for j = 1, 9 do
- selectTank()
- turtle.placeDown()
- turtle.forward()
- end
- -- CREA IL CORPO
- -- CREA LA 1 RIGA
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.up()
- selectTank()
- turtle.placeDown()
- for i = 0,7 do
- selectGlass()
- turtle.placeDown()
- turtle.forward()
- end
- selectTank()
- turtle.placeDown()
- turtle.turnLeft()
- turtle.forward()
- for j = 1, 3 do
- selectGlass()
- turtle.placeDown()
- turtle.forward()
- end
- turtle.select(9)
- turtle.placeDown()
- turtle.forward()
- for k = 1,3 do
- selectGlass()
- turtle.placeDown()
- turtle.forward()
- end
- selectTank()
- turtle.placeDown()
- turtle.turnLeft()
- for d = 0,7 do
- selectGlass()
- turtle.placeDown()
- turtle.forward()
- end
- selectTank()
- turtle.placeDown()
- turtle.turnLeft()
- for e = 0, 7 do
- selectGlass()
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnLeft()
- --CREA IL RESTO DEL CORPO
- for z = 1, 5 do
- turtle.up()
- for y = 1, 4 do
- if turtle.detectDown() == false then
- selectTank()
- turtle.placeDown()
- turtle.forward()
- else
- turtle.forward()
- end
- for x = 1,7 do
- selectGlass()
- turtle.placeDown()
- turtle.forward()
- end
- if turtle.detectDown() == false then
- selectTank()
- turtle.placeDown()
- turtle.turnLeft()
- else
- turtle.turnLeft()
- end
- end
- end
- --CREA IL TETTO
- turtle.up()
- for y = 1,2 do
- for s = 1, 9 do
- selectTank()
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- for r = 1, 9 do
- selectTank()
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- end
- for i = 1, 4 do
- selectTank()
- turtle.placeDown()
- turtle.forward()
- end
- turtle.select(9)
- turtle.placeDown()
- turtle.forward()
- for b = 1, 4 do
- selectTank()
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- for w = 1,2 do
- for s = 1, 9 do
- selectTank()
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- for r = 1, 9 do
- selectTank()
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement