jBlume

1x1 runnel w/ Roof

Sep 5th, 2025
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. print("How far?") -- Ask
  2.  
  3. local n = io.read() -- Reads the input and n=input
  4.  
  5. for x=1,n do --Do program this many times
  6.  if turtle.getItemCount(16) > 0 then --reboot if items are in slot 16 eg. turtle=full
  7.   print "Make a program to empty"
  8.   turtle.reboot()
  9.  end
  10.  if turtle.detectUp() == false then
  11.   turtle.placeUp()
  12.  end
  13.  if turtle.detect() == true then
  14.   turtle.dig()
  15.  end
  16.  turtle.forward()
  17. end
Advertisement
Add Comment
Please, Sign In to add comment