Advertisement
jaklsfjlsak

集成尝试 4/13

Apr 14th, 2025 (edited)
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. print("Press M to Activate Horizontal Mining System, Press J to Activate Laser Guided Warp System")
  2.  
  3. if not fs.exists("jzc") then
  4.     shell.run("pastebin get rfXW7SiN jzc")
  5.     term.clear()
  6. end
  7. if not fs.exists("ztc") then
  8.     shell.run("pastebin get S9SW0zHJ ztc")
  9.     term.clear()
  10. end
  11.  
  12. while true do
  13.     local event, key = os.pullEvent("key")
  14.     -- Use keys.m and keys.j instead of hardcoding 77 and 74.
  15.     if key == keys.m then
  16.         print("Booting Horizontal Mining System...")
  17.         shell.run("jzc")
  18.     elseif key == keys.j then
  19.         print("Booting Laser Guided Warp System...")
  20.         shell.run("ztc")
  21.     end
  22. end
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement