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
- --start with lava is slot 1
- local channel = 45 --destination number
- --initialize the modem
- modem = peripheral.wrap("left")
- modem.open(channel)
- args = { ... }
- turtle.turnRight()
- turtle.turnRight() --should be facing toward the player now
- 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()
- end
- sleep(20)
- turtle.select(1)
- turtle.dig()
- turtle.place()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement