yassine18299

wall builder 2.2

Apr 14th, 2021 (edited)
333
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     local i=1
  2.     turtle.select(i)
  3.     local x=tonumber(read())
  4.     local y=tonumber(read())
  5.     function notemp()
  6.     local currentItem = turtle.getItemDetail(i)
  7.     if currentItem == nil then
  8.         i=i+1
  9.         turtle.select(i)
  10.         end
  11.     end
  12.     turtle.up()
  13.     for i=1,y do
  14.         for j=1,x do
  15.             notemp()
  16.             turtle.placeDown()
  17.             if j<x then
  18.                 turtle.forward()
  19.             end
  20.         end
  21.         turtle.up()
  22.         turtle.turnLeft()
  23.         turtle.turnLeft()
  24.     end
  25.  
RAW Paste Data