Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Turtle Code
- local modem = peripheral.wrap("left") -- Wraps modem on left side
- modem.open(80) -- Open channel 80 so that we can listen on it
- while true do -- Start Loop
- local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message") --listen for message
- if message == "trigger" then
- turtle.digDown()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement