Advertisement
Aixler

mobfarmroof1

Nov 23rd, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.00 KB | None | 0 0
  1. slot = 1
  2.  
  3. function floor1()
  4.     for x=1, 10, 1 do
  5.         placeFloor()
  6.         turnRight()
  7.         placeFloor()
  8.         turnLeft()
  9.     end
  10. end
  11.  
  12. function placeFloor()
  13.     placeDown()
  14.     for x=1, 41, 1 do
  15.         turtle.forward()
  16.         placeDown()
  17.     end
  18. end
  19.  
  20. function place()
  21.     inventory()
  22.     turtle.place()
  23. end
  24.  
  25. function placeUp()
  26.     inventory()
  27.     turtle.placeUp()
  28. end
  29.  
  30. function placeDown()
  31.     inventory()
  32.     turtle.placeDown()
  33. end
  34.  
  35. function turnRight()
  36.     turtle.turnRight()
  37.     turtle.forward()
  38.     turtle.turnRight()
  39. end
  40.  
  41. function turnLeft()
  42.     turtle.turnLeft()
  43.     turtle.forward()
  44.     turtle.turnLeft()
  45. end
  46.  
  47. function inventory()
  48.     if turtle.getItemCount(slot) == 0 then
  49.         slot = slot + 1
  50.     end
  51.     turtle.select(slot)
  52. end
  53.  
  54. print("- place me in the backleft corner, of the left column")
  55. print("- fill me up with roof building block")
  56. print("- type anything and press enter when ready")
  57.  
  58. io.read()
  59.  
  60. turtle.up()
  61. for x=1, 14, 1 do turtle.back() end
  62. turtle.turnLeft()
  63. for x=1, 14, 1 do turtle.forward() end
  64. turtle.turnRight()
  65.  
  66. floor1()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement