Advertisement
murlocking

Untitled

May 12th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. local function getMat()
  2.  
  3.   right() ; robot.select(12) ; robot.place() ; robot.select(13)
  4.       repeat
  5.       for slot=1,27 do
  6.         local stack_info = inventory.getStackInSlot(side, slot)
  7.         if findMat(stack_info) then
  8.           print("Low building materials", "Restocking from" ,slot)
  9.           inventory.suckFromSlot(sides.front, slot)
  10.       break
  11.         end          
  12.       end
  13.          
  14.           if robot.count(13) <= 13 then
  15.             until robot.(13) >= 13
  16. robot.select(12) ; robot.swing()
  17.   left()    
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement