Advertisement
Invo_Ker

Wool farm

Jun 25th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. local r = require("robot")
  2. local inv = require("component").inventory_controller
  3.  
  4.  while true do
  5.   r.select(1)
  6.   if r.durability() == nil then
  7.   r.suckUp()
  8.   inv.equip()
  9.  end
  10.  
  11.   if r.detectDown() then
  12.   r.useDown()
  13.  end
  14.  
  15. for i=1, r.inventorySize() do
  16.   if r.count(i) > 0 then
  17.     r.select(i)
  18.     r.drop()
  19.    end
  20.   end
  21.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement