Advertisement
Xmann1

staircase-builder-up.lua

Apr 21st, 2025
497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. while true do
  2.   turtle.dig()
  3.  
  4.   while turtle.getItemCount() == 0 do
  5.     if turtle.getSelectedSlot() == 16 then
  6.       break
  7.     end
  8.  
  9.     turtle.select(turtle.getSelectedSlot() + 1)
  10.   end
  11.  
  12.   if turtle.getSelectedSlot() == 16 then
  13.     break
  14.   end
  15.  
  16.   turtle.place()
  17.  
  18.   if not turtle.up() then
  19.     break
  20.   end
  21.  
  22.   if not turtle.forward() then
  23.     break
  24.   end
  25. end
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement