Advertisement
Scali_e

Sender2

Mar 3rd, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. while true do
  2.  print("t para roca, y para arena")
  3.  local event, key = os.pullEvent("char")
  4.   if key == "t" then
  5.   print("roca")
  6.   peripheral.call("back", "transmit", 3, 1, "2200")
  7.   end
  8.   if key == "y" then
  9.   print("arena")
  10.   peripheral.call("back", "transmit", 3, 1, "0")
  11.   end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement