Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 1=pickaxe 2=hoe 3=water 4=seed
- -- need to make a find item thing
- local robot = require("robot")
- local component = require("component")
- function Awater ()
- robot.forward()
- robot.forward()
- robot.forward()
- robot.forward()
- robot.forward()
- robot.forward()
- robot.turnRight()
- robot.forward()
- robot.forward()
- robot.forward()
- robot.forward()
- robot.forward()
- end
- function Bwater()
- robot.select(1)
- component.inventory_controller.equip()
- robot.swingDown()
- robot.turnAround()
- component.inventory_controller.equip()
- robot.select(3)
- component.inventory_controller.equip()
- robot.useDown()
- component.inventory_controller.equip()
- end
- function Rwater()
- robot.forward()
- robot.forward()
- robot.forward()
- robot.forward()
- robot.turnLeft()
- robot.forward()
- robot.forward()
- robot.forward()
- robot.forward()
- robot.forward()
- robot.forward()
- robot.turnAround()
- end
- function PosFarm()
- robot.forward()
- robot.up()
- end
- function Row()
- robot.forward()
- robot.useDown()
- robot.forward()
- robot.useDown()
- robot.forward()
- robot.useDown()
- robot.forward()
- robot.useDown()
- robot.forward()
- robot.useDown()
- robot.forward()
- robot.useDown()
- robot.forward()
- robot.useDown()
- robot.forward()
- robot.useDown()
- robot.forward()
- robot.useDown()
- robot.forward()
- end
- function Tright()
- robot.turnRight()
- robot.forward()
- robot.turnRight()
- end
- function Tleft()
- robot.turnLeft()
- robot.forward()
- robot.turnLeft()
- end
- function Ehoe()
- robot.select(2)
- component.inventory_controller.equip()
- end
- function Dhoe()
- component.inventory_controller.equip()
- end
- function Eseed()
- robot.select(4)
- component.inventory_controller.equip()
- end
- function Dseed()
- component.inventory_controller.equip()
- end
- Awater()
- Bwater()
- Rwater()
- PosFarm()
- Ehoe()
- Row()
- Tright()
- Row()
- Tleft()
- Row()
- Tright()
- Row()
- Tleft()
- Row()
- Tright()
- Row()
- Tleft()
- Row()
- Tright()
- Row()
- Tleft()
- Row()
- Dhoe()
- robot.turnAround()
- Eseed()
- Row()
- Tright()
- Row()
- Tleft()
- Row()
- Tright()
- Row()
- Tleft()
- Row()
- Tright()
- Row()
- Tleft()
- Row()
- Tright()
- Row()
- Tleft()
- Row()
- Dseed()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement