Advertisement
LMN101

Turtle Mob Farm CC

Mar 12th, 2020
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. shell.run("clear")
  2. if turtle then
  3. print("Starting up, Press Ctrl+T to exit")
  4. print("Auto Attack By DPad+")
  5. for i = 1,16 do
  6. turtle.select(i)
  7. if turtle.getItemCount(i) > 0 then
  8. turtle.drop()
  9. end
  10. end
  11. turtle.select(1)
  12. while true do
  13. if redstone.getInput("bottom") then
  14. turtle.attack()
  15. turtle.suck()
  16. if turtle.getItemCount(1) > 2 then
  17. for i = 1,8 do
  18. turtle.select(i)
  19. if turtle.getItemCount(i) > 0 then
  20. turtle.drop()
  21. end
  22. sleep(0.1)
  23. end
  24. end
  25. turtle.select(1)
  26. else
  27. sleep(0.1)
  28. end
  29. end
  30. else
  31. print("This is a program meant for a turtle. You're on a computer now")
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement