Advertisement
Tanoro

Turtle Obisidian Farm

Jan 23rd, 2021 (edited)
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. -- pastebin get i4mmbk3W obsidianBreaker
  2.  
  3. -- Set resting signals
  4. redstone.setOutput("right", false)
  5. redstone.setOutput("left", false)
  6.  
  7. while true do
  8. redstone.setOutput("left", not redstone.getOutput("left"))
  9. redstone.setOutput("right", not redstone.getOutput("right"))
  10. os.sleep(3)
  11.  
  12. if turtle.detect() == true then
  13. turtle.dig()
  14. redstone.setOutput("left", not redstone.getOutput("left"))
  15. redstone.setOutput("right", not redstone.getOutput("right"))
  16. end
  17. os.sleep(3)
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement