MagmaLP

[Shards-Trade]-Iron_Trade-Turtle

Dec 25th, 2020 (edited)
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("right")
  2. turtle.select(1)
  3. turtle.drop()
  4.  
  5. x, y, z = rednet.receive()
  6. rs.setOutput("top",true)
  7.  
  8. y = y / 8
  9. y = y + 1
  10. print(y)
  11.  
  12. while true do
  13.     turtle.dropDown(8)
  14.     y = y - 1
  15.     sleep(0.5)
  16.     print(y)
  17.  
  18.     if y == 0 then
  19.         rs.setOutput("top",false)
  20.         sleep(1)
  21.         turtle.drop()
  22.         os.reboot()
  23.     end
  24.     if y == 5000 then
  25.         os.reboot()
  26.     end
  27.  
  28. end
Add Comment
Please, Sign In to add comment