SHARE
TWEET

Room.lua

a guest May 22nd, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local width, length, height = ...
  2. local Flip = 1
  3.  
  4. function forward_dig(length)
  5.     for i = 2, length do
  6.         turtle.dig()
  7.         turtle.forward()
  8.     end
  9. end
  10.  
  11. function turnAround(length)
  12.     turtle.turnLeft()
  13.     turtle.turnLeft()
  14.     for i = 1, length do
  15.         turtle.forward()
  16.     end
  17.     turtle.turnLeft()
  18.     turtle.dig()
  19.     turtle.forward()
  20.     turtle.turnLeft()
  21. end
  22.  
  23. function Home(length)
  24.     for i = 1, length do
  25.         turtle.forward()
  26.     end    
  27. end
  28.  
  29.  
  30. for i = 1, width do
  31.     forward_dig(length)
  32.     turnAround(length)
  33. end      
  34.  
  35. Home(length)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top