Advertisement
DustinRosebery

Endoflame Turtle

Dec 19th, 2015
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. -- Endoflame turtle
  2. t = turtle
  3. coalAmount = 4 -- Number of coal dropped
  4. sleepTimer = 40
  5.  
  6. function coalCheck
  7. for i=1, 16, 1 do
  8. flag = t.getItemCount(i)
  9. if flag > 0 + coalAmount then
  10. t.select(i)
  11. t.dropDown(coalAmount)
  12. break
  13. end
  14. end
  15. end
  16.  
  17. while true do
  18. if redstone.getInput(front) == 0 then
  19. coalCheck()
  20. os.sleep(sleepTimer)
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement