Advertisement
druidbruce

OC robot astral

Jun 2nd, 2020
856
0
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.25
  8.  
  9.  
  10. local function drop(slot)
  11.     robot.select(slot)
  12.    
  13.             robot.dropUp()
  14.    
  15. end
  16.  
  17. while true do
  18.    
  19.     if red.getInput(sides.left)>1 then
  20.         os.sleep(0.5)
  21.         robot.swing()
  22.        
  23.         for i = 1, 16 do  --dropping bucket
  24.             drop(i)
  25.         end
  26.  
  27.  
  28.     end
  29.     os.sleep(0.6)
  30.  
  31.  
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement