Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Wait for a redstone signal and then activate the drop protocol for WaterDrop
- --does not actually need a dropper
- --start with water in slot 1 and 2
- local channel = 0 --destination number
- --initialize the modem
- modem = peripheral.wrap("left")
- modem.open(channel)
- args = { ... }
- turtle.select(3)
- turtle.back()
- for i=1,50,1 do
- turtle.digDown()
- turtle.down()
- end
- turtle.up()
- turtle.select(1)
- turtle.placeDown()
- for i=1,49,1 do
- turtle.up()
- end
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- turtle.turnRight()
- turtle.select(3)
- turtle.place()
- while true do
- os.pullEvent("redstone") -- wait for a "redstone" event
- if rs.getInput("top") then -- check the input
- --This is a call to start dropping.
- modem.transmit(channel, 2, "ON")
- print("Sending Drop Signal")
- modem.closeAll()
- turtle.dig()
- sleep(10)
- turtle.digDown()
- turtle.select(2)
- turtle.placeDown()
- sleep(20)
- turtle.select(3)
- turtle.place()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement