Advertisement
jaklsfjlsak

采矿船集成激光启动器

Aug 25th, 2023 (edited)
979
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | None | 0 0
  1. print("Press M to Activate Horizontal Mining System, Press J to Activate Laser Guided Warp System")
  2.  
  3.  
  4.   if fs.exists("jzc") == false then
  5.     shell.run("pastebin get rfXW7SiN jzc")
  6.     term.clear()
  7.   end
  8.   if fs.exists("ztc") == false then
  9.     shell.run("pastebin get S9SW0zHJ ztc")
  10.     term.clear()
  11.   end
  12.  
  13.  
  14.  
  15.   while true do
  16.     local event, key = os.pullEvent("key")
  17.     if event == "key" then
  18.       -- keys are represented by numbers, the number for 'M' is 77
  19.       if key == 77 then
  20.         print("Booting Horizontal Mining System...")
  21.         shell.run("jzc")
  22.       end
  23.       -- keys are represented by numbers, the number for 'J' is 74
  24.       if key == 74 then
  25.         print("Booting Laser Guided Warp System...")
  26.         shell.run("ztc")
  27.       end
  28.     end
  29.   end
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement