Advertisement
HarvDad

funneltrap

Jun 16th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1.  
  2. local function rise(nBlocks)
  3. for i=1,nBlocks do
  4. turtle.up()
  5. end
  6. end
  7.  
  8. local function back(nBlocks)
  9. for i=1,nBlocks do
  10. turtle.back()
  11. end
  12. end
  13.  
  14. local function left(nBlocks)
  15. turtle.turnLeft()
  16. if nBlocks == nil or nBlocks == 0 then
  17. return
  18. end
  19. for i=1,nBlocks do
  20. turtle.forward()
  21. end
  22. end
  23.  
  24. local function right(nBlocks)
  25. turtle.turnRight()
  26. if nBlocks == nil or nBlocks == 0 then
  27. return
  28. end
  29. for i=1,nBlocks do
  30. turtle.forward()
  31. end
  32. end
  33.  
  34. height = 3
  35.  
  36. shell.run("quadchute up ", height/3)
  37. rise(height)
  38. back(3)
  39. left(4)
  40. right(0)
  41. shell.run("pattern funnel12")
  42. right(0)
  43. shell.run("walls 12 12 4")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement