SHARE
TWEET

OC robot astral

druidbruce Jun 2nd, 2020 (edited) 737 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
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