Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I want to stop the loop at "until robot.durability()" if slot 1 on the robot is empty.
- Can I do 'until robot.durability() or if not getStackInInternalSlot()' ?
- Also, is there an easier way to select and drop the content of slot 2 to 11 ?
- Thank you so much for your help. Almost done with this program.
- local function checkTool()
- if not robot.durability() then
- robot.select(2)
- robot.drop()
- robot.select(3)
- robot.drop()
- robot.select(4)
- robot.drop()
- robot.select(5)
- robot.drop()
- robot.select(6)
- robot.drop()
- robot.select(7)
- robot.drop()
- robot.select(8)
- robot.drop()
- robot.select(9)
- robot.drop()
- robot.select(10)
- robot.drop()
- robot.select(11)
- robot.drop()
- robot.select(17)
- robot.transferTo(2)
- c.craft(1)
- until robot.durability()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement