Advertisement
Maxiride

Untitled

Apr 18th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. local planter=peripheral.wrap("tile_mfr_machine_planter_name_2")
  2. local harvester=peripheral.wrap("bottom")
  3. local modem=peripheral.wrap("left")
  4.  
  5. function slotDebug()
  6. for i=1, 18 do
  7.     print(tostring(i)..": ")
  8.     if planter.getStackInSlot(i) then
  9.         for k,v in pairs(planter.getStackInSlot(i)) do
  10.             write("  "..tostring(k))
  11.             print("  "..tostring(v))
  12.         end
  13.     end
  14. end
  15. end
  16.  
  17. function slotCheck()
  18. if planter.getStackInSlot(26).qty <= 18 then
  19.     harvester.setShearLeaves(False)
  20.     elseif planter.getStackInSlot(26).qty >=60 then
  21.     harvester.setShearLeaves(True)
  22. end
  23.  
  24. os.sleep(30)
  25. slotCheck()
  26. end
  27.  
  28.  
  29.  
  30. function main()
  31. slotCheck()
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement