SHARE
TWEET

OC robot fifth degree steel

druidbruce Jun 5th, 2020 (edited) 950 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local component = require("component")
  2. local sides = require("sides")
  3. local os = require("os")
  4. local robot = require("robot")
  5. local inv = component.inventory_controller
  6. local red = component.redstone
  7. local pulsetime = 0.1
  8.  
  9. local function pulse(PT)
  10.     red.setOutput(sides.down,15)
  11.     os.sleep(PT)
  12.     red.setOutput(sides.down,0)
  13. end
  14.  
  15. while true do
  16.     os.sleep(1)
  17. while inv.getStackInSlot(sides.front,1) ~= nil do
  18.     inv.suckFromSlot(sides.front,1)
  19.     robot.turnLeft()
  20.     while robot.count(1) > 0 do
  21.         for i = 1, 3 do  -- drop into alloy smelter
  22.             inv.dropIntoSlot(sides.front, i, 1)
  23.         end    
  24.         os.sleep(0.5)
  25.     end
  26.     robot.turnRight()
  27. end
  28.  
  29. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top