Advertisement
TurboSlayer

Wall

Jan 16th, 2022
963
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local arg = {...}
  2. local dim = arg[1]
  3. local height = arg[2]
  4. turtle.select(1)
  5. for m=1,height do
  6.     turtle.up()
  7.     for n=1,4 do
  8.         for o=1,dim-1 do
  9.             if turtle.getItemCount() == 0 then
  10.                 turtle.select(turtle.getSelectedSlot() + 1)
  11.             end
  12.             turtle.placeDown()
  13.             turtle.forward()
  14.         end
  15.         turtle.turnRight()
  16.     end      
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement