Advertisement
Guest User

kop

a guest
Jun 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1.  
  2. function main(szer, dlu, wys)
  3. for h = 1,dlu do
  4. sciana(wys,szer)
  5.  
  6. end
  7. end
  8. function sciana(wys,szer)
  9. turtle.dig()
  10. turtle.forward()
  11. turtle.turnRight()
  12. for j=1,szer-1 do
  13. for i=1,wys-1 do
  14. turtle.digUp()
  15. if  i == wys-1 then
  16. else
  17. turtle.up()
  18. end
  19. end
  20. for i=1,wys-1 do
  21. turtle.down()
  22. end
  23. --turtle.turnRight()
  24. turtle.dig()
  25. turtle.forward()
  26. --turtle.turnLeft()
  27. end
  28. for i=1,wys-1 do
  29. turtle.digUp()
  30. if  i == wys-1 then
  31. else
  32. turtle.up()
  33. end
  34. end
  35. for i=1,wys-1 do
  36. turtle.down()
  37. end
  38. turtle.turnLeft()
  39. turtle.turnLeft()
  40. for i =1,szer-1 do
  41. turtle.forward()
  42. end
  43. turtle.turnRight();
  44. end
  45.  
  46. print("podaj szerokosc")
  47. sz = read()
  48. print("podaj glebokosc")
  49. g = read()
  50. print("podaj wysokosc")
  51. w = read()
  52. --return sciana(w,sz)
  53. return main(sz,g,w)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement