Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local sides = require("sides")
- local os = require("os")
- local robot = require("robot")
- local inv = component.inventory_controller
- local red = component.redstone
- local pulsetime = 0.25
- local function drop(slot)
- robot.select(slot)
- robot.dropUp()
- end
- while true do
- if red.getInput(sides.left)>1 then
- os.sleep(0.5)
- robot.swing()
- for i = 1, 16 do --dropping bucket
- drop(i)
- end
- end
- os.sleep(0.6)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement