eleeet

овцы2

Aug 2nd, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. local r = require("robot")
  2. local comp = require("component")
  3. local computer = require("computer")
  4.  
  5. while true do
  6.     r.use()
  7.     r.dropDown()
  8.     if r.count(16)>0 then
  9.         for k = 1, 16 do --перебираем все слоты с ресурсами
  10.         r.select(k) --выбираем слот под индексом к
  11.         r.dropDown() --выгружаем все ресурсы вниз а если нет сундука то выбрасываем на пол
  12.         end
  13.     r.select(1)
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment