SHARE
TWEET

Untitled

soulgriever Jun 30th, 2020 841 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Turtle Code
  2. local modem = peripheral.wrap("left")          -- Wraps modem on left side
  3. modem.open(80)                                 -- Open channel 80 so that we can listen on it
  4.  
  5. while true do                                  -- Start Loop
  6.     local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message") --listen for message
  7.  
  8.     if message == "trigger" then
  9.         turtle.digDown()
  10.     end
  11. 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