Advertisement
rungholt

floor

Aug 3rd, 2023 (edited)
938
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 1 0
  1. local function goUp()
  2.     for i = 1, 10 - 1 do
  3.         turtle.up()
  4.     end
  5. end
  6.  
  7. local function fillX()
  8.     for j = 1, 16 do
  9.         turtle.select(j)
  10.         turtle.placeUp()
  11.         turtle.forward()
  12.     end
  13. end
  14.  
  15. local function changeRight()
  16.     turtle.turnRight()
  17.     turtle.forward()
  18.     turtle.turnRight()
  19. end
  20.  
  21. local function changeLeft()
  22.     turtle.turnLeft()
  23.     turtle.forward()
  24.     turtle.turnLeft()
  25. end
  26.  
  27. local function wholeFloor()
  28.     for k = 1, 16 / 2 do
  29.         fillX()
  30.         changeRight()
  31.         fillX()
  32.         changeLeft()
  33.     end
  34.     sleep(600)
  35. end
  36.  
  37. goUp()
  38. wholeFloor()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement