Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local dest={"End", "Home"}
- for i=1, 2, 1 do
- print(dest[i])
- end
- local tp=io.read()
- rednet.open("back")
- if tp==dest[1] then
- term.clear()
- term.setCursorPos(1, 1
- print("Teleporting to", dest[1])
- rednet.send(00, "tp")
- sleep(2)
- term.clear()
- elseif tp==dest[2] then
- term.clear()
- term.setCursorPos(1, 1)
- print("Teleporting to", dest[2], "sweet", dest[2])
- rednet.send(01, "tp")
- sleep(2)
- term.clear()
- else
- term.clear()
- term.setCursorPos(1, 1)
- print("Unknown Destination")
- sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement