Advertisement
Guest User

Untitled

a guest
May 7th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.24 KB | None | 0 0
  1. local function placeRails()
  2.   local hasRails = inventory.getStackInInternalSlot(4)
  3.               robot.select(4)
  4.            if robot.count() <=2 then
  5.               robot.select(8)
  6.               robot.turnRight()
  7.               robot.place()
  8.               robot.select(2)
  9.               robot.drop()
  10.               robot.select(3)
  11.               robot.drop()
  12.               robot.select(5)
  13.               robot.drop()
  14.               robot.select(6)
  15.               robot.drop()
  16.               robot.select(7)
  17.               robot.drop()
  18.               robot.select(9)
  19.               robot.drop()
  20.               robot.select(10)
  21.               robot.drop()
  22.               robot.select(11)
  23.               robot.drop()
  24.     for slot = 1, inventory.getInventorySize(3) do
  25.            if hasRails = inventory.getStackInSlot(slot) then
  26.               repeat
  27.               inventory.suckFromSlot(3, slot)
  28.               until robot.count(4) >= 3
  29.           return slot
  30.               robot.swing()
  31.               robot.select(2)
  32.               robot.transferTo(8)
  33.               robot.select(4)
  34.               robot.turnLeft()
  35.             end
  36.           end
  37.         end
  38.               robot.turnAround()
  39.               robot.place()
  40.               robot.turnAround()
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement