Advertisement
SkyFlash21

Untitled-2

Jul 20th, 2021
1,449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. local modem = peripheral.wrap("right") -- Wraps the modem on the right side.
  2. print("Bienvenu dans le proggrame client des robot MK1")
  3. sleep(0.5)
  4. print("Assurez vous d'être à l'étape 1 sur la turtle avant de continuer")
  5. print("Choisir un nom pour la tortue (seulement lettre et nombre)")
  6. modem.transmit(3, 1, "Ping," ... string.match(read(), "%W")  )
  7. received = ""
  8.  
  9. local event, modemSide, senderChannel,
  10.   replyChannel, message, senderDistance = os.pullEvent("modem_message")
  11.  
  12. peripheral.call("right", "transmit", 3, 1, "This will also work!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement