Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function placeRails()
- local hasRails = inventory.getStackInInternalSlot(4)
- robot.select(4)
- if robot.count() <=2 then
- robot.select(8)
- robot.turnRight()
- robot.place()
- robot.select(2)
- robot.drop()
- robot.select(3)
- robot.drop()
- robot.select(5)
- robot.drop()
- robot.select(6)
- robot.drop()
- robot.select(7)
- robot.drop()
- robot.select(9)
- robot.drop()
- robot.select(10)
- robot.drop()
- robot.select(11)
- robot.drop()
- for slot = 1, inventory.getInventorySize(3) do
- if hasRails = inventory.getStackInSlot(slot) then
- repeat
- inventory.suckFromSlot(3, slot)
- until robot.count(4) >= 3
- return slot
- robot.swing()
- robot.select(2)
- robot.transferTo(8)
- robot.select(4)
- robot.turnLeft()
- end
- end
- end
- robot.turnAround()
- robot.place()
- robot.turnAround()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement