emagiannu

Ender-Lily Farm

Feb 26th, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. function dig()
  2.   turtle.select(1)
  3.   turtle.dig()
  4.   turtle.place()
  5. end
  6.  
  7. function place()
  8.   turtle.select(1)
  9.   turtle.place()
  10. end
  11.  
  12. function drop()
  13.   turtle.select(2)
  14.   turtle.dropDown()
  15.   turtle.select(1)
  16. end
  17.  
  18. a = 1
  19.  
  20. while true do
  21.   event = os.pullEvent("redstone")
  22. a = a + 1
  23. print("a = " .. a)
  24. if(a == 3) then
  25.   dig()
  26.   sleep(1)
  27.   place()
  28.   drop()
  29.   a = 1
  30. end
  31.   sleep(1)
  32. end
Advertisement
Add Comment
Please, Sign In to add comment