Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local robot = require("robot")
- local inv = require("component").inventory_controller
- local comp = require("computer")
- local s = require("sides")
- local timeSleep = 0.1
- local timeSl = 0.5
- local maxH = 5
- local countTik = 0
- print("начало")
- while true do
- ---
- robot.suckUp()
- robot.select(1)
- robot.place()
- --os.sleep(timeSl)
- for i=1,20 do
- robot.use()
- end
- --os.sleep(timeSl)
- robot.select(2)
- --os.sleep(timeSl)
- inv.equip()
- --os.sleep(timeSl)
- robot.swing()
- robot.swing()
- robot.swing()
- robot.swing()
- --os.sleep(timeSl)
- robot.select(3)
- --os.sleep(timeSl)
- inv.equip()
- --os.sleep(timeSl)
- for i=1,maxH do
- robot.up()
- robot.swingUp()
- os.sleep(timeSleep)
- end
- for i=1,maxH do
- robot.down()
- os.sleep(timeSleep)
- end
- --os.sleep(timeSl)
- robot.select(3)
- inv.equip()
- robot.select(2)
- inv.equip()
- robot.suckUp()
- os.sleep(4)
- ---
- end
- print("работа выполнена")
Add Comment
Please, Sign In to add comment