asixsidedsquare

REAL ROBOT STAIRS

Oct 20th, 2020 (edited)
540
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function singleStair()
  2.     turtle.up()
  3.     turtle.dig()
  4.     turtle.down()
  5.     turtle.dig()
  6.     turtle.digDown()
  7.     turtle.down()
  8.     turtle.dig()
  9. end
  10.  
  11. function stairs()
  12.     turtle.forward()
  13.     singleStair()
  14. end
  15.  
  16. function fueling()
  17.     for i=1,16 do
  18.     turtle.select(i)
  19.     turtle.refuel()
  20.     end
  21. end
  22.  
  23. while(true) do
  24.     fueling()
  25.     stairs()
  26. end
RAW Paste Data