Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local r = require("robot")
- local inv = require("component").inventory_controller
- while true do
- r.select(1)
- if r.durability() == nil then
- r.suckUp()
- inv.equip()
- end
- if r.detectDown() then
- r.useDown()
- end
- for i=1, r.inventorySize() do
- if r.count(i) > 0 then
- r.select(i)
- r.drop()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement