Advertisement
rungholt

tbuildup

Aug 6th, 2023 (edited)
945
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. local args = { ... }
  2. local x = tonumber(args[1])
  3.  
  4. local function placeX()
  5.     turtle.place()
  6.     for i = 1, x - 1 do
  7.         turtle.up()
  8.         turtle.select(1)
  9.         turtle.place()
  10.     end
  11. end
  12.  
  13. local function goDown()
  14.     for j = 1, x - 1 do
  15.         turtle.down()
  16.     end
  17. end
  18.  
  19. local function start()
  20.     placeX()
  21.     goDown()
  22. end
  23.  
  24. start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement