Advertisement
ScoutMaester

Wireless Turtle Transmitter

Sep 8th, 2023 (edited)
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. --This will keep the terminal clear and only allow one command at a time
  2. rednet.open("back", 50) -- 50 is the channel and can be replaced by any number.
  3. while true do
  4. write("Command: ")
  5. input = read()
  6. if input == "clear" then
  7. term.clear()
  8. term.setCursorPos(1,1)
  9. elseif input == "tunnel" then
  10. rednet.broadcast(input)
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement