Advertisement
PolskiWisnia

MineCore CMD

Oct 7th, 2019
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.04 KB | None | 0 0
  1. local function s(...) return sleep(...) end
  2. local function w(...) return write(...) end
  3. local function p(...) return print(...) end
  4. local function tw(...) return term.write(...) end
  5. local function scp(...) return term.setCursorPos(...) end
  6. local function sbc(...) return term.setBackgroundColor(...) end
  7. local function stc(...) return term.setTextColor(...) end
  8. local function tc(...) return term.clear(...) end
  9. local function tcl(...) return term.clearLine(...) end
  10. local function r(...) return shell.run(...) end
  11. local function sp(...) return textutils.slowPrint(...) end
  12. local function sw(...) return textutils.slowWrite(...) end
  13. local function fse(...) return fs.exists(...) end
  14. local function pul(...) return paintutils.loadImage(...) end
  15. local function pud(...) return paintutils.drawImage(...) end
  16. local function pfb(...) return paintutils.drawFilledBox(...) end
  17. local function su(...) return os.shutdown(...) end
  18. local function re(...) return os.reboot(...) end
  19. local function pdp(...) return paintutils.drawPixel(...) end
  20. s(1)
  21. tc()
  22. sbc(colors.black)
  23. tc()
  24. sbc(colors.black)
  25. stc(colors.white)
  26. scp(1,1)
  27. p("MineCore Command Prompt")
  28. p("2018 Microcraft")
  29. p("Wpisz 'help', aby uzyskac pomoc")
  30. while true do
  31. w(".>")
  32. comm = read()
  33. if comm == "help" then
  34.  p("'ver' - wersja MineCore")
  35.  p("'next' - powrot do NextUI")
  36.  p("'nextver' - wersja NextUI")
  37.  p("'run' - uruchom plik")
  38.  p("'log' - zmiana hasla")
  39.  p("'reboot' - uruchom ponownie")
  40.  p("'shutdown' - wylacz komputer")
  41. end
  42. if comm == "ver" then
  43.  p("Microcraft MineCore 1.6 2019.")
  44.  p("Microcraft MineUI D 1.0 2018.")
  45. end
  46. if comm == "nextver" then
  47.  p("Microcraft NextUI 1.5 Anniversary Update 2019.")
  48. end
  49. if comm == "next" then r("/os/.next") end
  50. if comm == "run" then
  51.  w("Wpisz sciezke pliku: ")
  52.  plik = read()
  53.  if fs.exists(plik) then r(plik) end
  54. end
  55. if comm == "log" then
  56.  w("Wpisz nowe haslo: ")
  57.  passw = read()
  58.  r("rm /os/.log2")
  59.  local pas = fs.open("/os/.log2", "w")
  60.  pass = pas.writeLine(passw)
  61.  pas.close()
  62.  p("Uruchamianie ponownie...")
  63.  s(1)
  64.  re()
  65. end
  66. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement