local robot = require("robot") local robot_component_api = require("component").robot local sides = require("sides") local inventory = require("component").inventory_controller local rs = require("component").redstone local magnet = require("component").tractor_beam local planted_seed = [[1,1,1], [1,1,1]] robot.forward() robot.turnLeft() robot.forward() robot.turnLeft() robot.select(2) robot.suck() -- Attrape la première graine robot.turnRight() robot.forward() robot.turnLeft() robot.select(3) robot.suck() -- Attrape la seconde graine robot.turnRight() robot.forward() robot.turnLeft() robot.select(1) robot.suck() -- Attrape un stack de crops robot.turnRight() robot.forward() robot.turnRight() robot.forward() robot.turnLeft() robot.select(2) robot.drop() -- Pose la première graine dans le seed analyser os.sleep(6) robot.suck() -- Récuperer la graine dans le seed analyser robot.select(3) robot.drop() -- Pose la seconde graine dans le seed analyser os.sleep(6) robot.suck() -- Récuperer la graine dans le seed analyser robot.turnRight() robot.forward() robot.turnRight() robot.forward() robot.turnRight() robot.select(1) inventory.equip() -- Attrape les crops robot_component_api.use(sides.front) inventory.equip() robot.select(2) -- Attrape la première seed inventory.equip() robot_component_api.use(sides.front) inventory.equip() robot.turnLeft() robot.forward() robot.forward() robot.turnRight() robot.select(1) inventory.equip() robot_component_api.use(sides.front) inventory.equip() robot.select(3) inventory.equip() robot_component_api.use(sides.front) inventory.equip() robot.turnRight() robot.forward() robot.turnLeft() os.sleep(2) robot.select(1) inventory.equip() rs.setOutput(sides.bottom, 14) os.sleep(1) robot_component_api.use(sides.front, true) rs.setOutput(sides.bottom, 0) os.sleep(2) robot.swing(sides.front) while not magnet.suck(1) == false do print("Shlouuupe") end