Advertisement
Shirogane_Aki

minecraft Draconic Reactor

Mar 5th, 2022
1,480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.05 KB | None | 0 0
  1. local component = require("component")
  2. local os = require("os")
  3. local io = require("io")
  4.  
  5. if not component.isAvailable("internet") then
  6.   print("You need to add an internet card before you can continue.")
  7.   os.exit()
  8. end
  9.  
  10. if not component.isAvailable("redstone") then
  11.   print("You need to add a redstone card before you can continue.")
  12.   os.exit()
  13. end
  14.  
  15. links = {"https://www.dropbox.com/s/jqpap6qbihd27xd/rs_failsafe.lua?dl=1",
  16.          "https://www.dropbox.com/s/ihojmrsi7d6u0bw/draconic_config.lua?dl=1",
  17.          "https://www.dropbox.com/s/9zahhj6d3rw7pie/draconic_control.lua?dl=0",
  18.          "https://www.dropbox.com/s/m3bpx8szajs6klt/draconic_pd_controller.lua?dl=1"}
  19.  
  20. for _,link in pairs(links) do
  21.   os.execute("wget " .. link)
  22. end
  23.  
  24. os.execute("echo NOTE: Edit rs_failsafe.lua to modify redstone output side.")
  25. os.execute("echo; echo DO: edit draconic_config.lua")
  26. os.execute("echo REBOOT ONCE YOU HAVE COMPLETED THE CONFIG")
  27.  
  28. file = io.open('.shrc', 'w')
  29. io.output(file)
  30. io.write("lua rs_failsafe.lua; lua draconic_control.lua")
  31. io.close(file)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement