Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local r = require("robot")
- local inv = require("component").inventory_controller
- local function check()
- inv.equip()
- if (inv.getStackInInternalSlot().damage >= (tostring(inv.getStackInInternalSlot().maxDamage) - 2)) then
- r.dropUp()
- repeat
- os.sleep(20)
- if r.suckUp() == true then
- if inv.getStackInInternalSlot().damage <= inv.getStackInInternalSlot().maxDamage - 2 then
- break
- else
- r.dropUp()
- end
- end
- until false
- end
- end
- local function lava()
- r.useDown()
- r.use()
- inv.equip()
- r.swing()
- end
- r.select(1)
- while true do
- for i = 1, 64 do
- check()
- lava()
- end
- r.turnAround()
- r.select(2)
- r.drop(64)
- r.select(1)
- r.turnAround()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement