Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function main()
- term.clear()
- x,y = term.getSize()
- term.setCursorPos(1,1)
- term.setCursorBlink(true)
- print("Welcome to turtlemine!")
- OpenAllPorts()
- Input()
- end
- function OpenAllPorts()
- for _,v in ipairs(rs.getSides()) do
- rednet.open(v)
- end
- end
- function Input()
- while true do
- term.write("mine > ")
- local x = read()
- if(string.lower(x)=="exit") then
- break
- end
- rednet.broadcast(x)
- end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment