Advertisement
DraMic

Kaktus

Feb 22nd, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. n=32
  2. t=turtle
  3. for s=1,4 do
  4. if t.getItemCount(s)<=0 then
  5. print ("1 - steklo")
  6. print ("2 - osnova")
  7. print ("3 - pesok")
  8. print ("4 - kaktus")
  9. return
  10. end
  11. end
  12. t.forward()
  13. for i=1,n do
  14. for j=2,3 do
  15. t.select(j)
  16. t.turnLeft()
  17. t.place()
  18. t.turnRight()
  19. t.turnRight()
  20. t.place()
  21. t.turnLeft()
  22. t.up()
  23. end
  24. t.up()
  25. t.select(4)
  26. t.turnLeft()
  27. t.forward()
  28. t.placeDown()
  29. t.back()
  30. t.back()
  31. t.placeDown()
  32. t.forward()
  33. t.up()
  34. t.turnRight()
  35. t.select(1)
  36. t.placeDown()
  37. t.forward()
  38. t.forward()
  39. for i=1,4 do
  40. t.down()
  41. end
  42. end
  43. for i=1,4 do
  44. t.up()
  45. end
  46. for i=1,65 do
  47. t.back()
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement