eleeet

души эндеров

Jul 7th, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 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.     if r.count(16)>0 then
  8.         for k = 2, 16 do --перебираем все слоты с ресурсами
  9.         r.select(k) --выбираем слот под индексом к
  10.         r.dropDown() --выгружаем все ресурсы вниз а если нет сундука то выбрасываем на пол
  11.         end
  12.     r.select(1)
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment