Advertisement
M0n5t3r

Untitled

Jun 2nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. local forward = 0
  2. local up = 0
  3.  
  4. function createStairs()
  5.     if forward == 3 then
  6.         turtle.turnLeft()
  7.         forward = 0
  8.         print(forward)
  9.     end
  10.     --maak omhoog kapot
  11.     turtle.digUp()
  12.     repeat
  13.         turtle.digUp()
  14.     until not turtle.detectUp() == true
  15.  
  16.     --maak omlaag kapot
  17.     turtle.digDown()
  18.     repeat
  19.         turtle.digDown()
  20.     until not turtle.detectDown() == true
  21.  
  22.     --maak vooruit kapot
  23.     turtle.dig()
  24.     repeat
  25.         turtle.dig()
  26.     until not turtle.detect() == true
  27.  
  28.     --ga vooruit
  29.     turtle.forward()
  30.     --ga omhoog
  31.     turtle.up()
  32.  
  33.     --reken shizzle
  34.     forward = forward + 1
  35.     up = up + 1
  36. end
  37.  
  38.  
  39. turtle.up()
  40. repeat
  41.     createStairs()
  42. until up == 100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement