Advertisement
CelticCoder

warehouseCode

Nov 22nd, 2023 (edited)
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.loadAPI("turtleChest.lua")
  2. os.loadAPI("setNorth.lua")
  3. os.loadAPI("turtleToCords.lua")
  4. os.loadAPI("userInput.lua")
  5.  
  6. function insertAll()
  7.     if not turtleChest.insertAllUp() then
  8.         if not turtleChest.insertAllDown() then
  9.             return false
  10.         end
  11.     end
  12.     return true
  13. end
  14.  
  15. function getAll()
  16.     if turtleChest.takeAllUp() then
  17.         if
  18.     elseif turtleChest.takeAllDown() then
  19.             return true
  20.     end
  21.     return false
  22. end
  23.  
  24. function putCheck(direction, count)
  25.     tcount = turtleChest.countCheck()
  26.     cdiff = tcount - count
  27.     if cdiff == 0 then
  28.         return true
  29.     elseif cdiff > 0 then
  30.         if direction == "up"
  31.     end
  32.     return false
  33. end
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement