Advertisement
zeplintwo

Install for DW20 Big Reactors controller

Feb 15th, 2015
846
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.18 KB | None | 0 0
  1. --[[
  2.         Programmer: Zeplin
  3.         Last update: 2015-2-15
  4.         Pastebin: http://pastebin.com/MuS68wCr
  5.  
  6.         Description:
  7.          This program controls a Big Reactors nuclear reactor
  8.          in Minecraft with a ComputerCraft computer, using ComputerCraft's
  9.          own wired modem connected to the reactors computer control port.
  10.          And computer touching the capacitor banks.
  11.  
  12.          Save this file as "install" on your Computer for it updates and install on Computer.
  13.          To easily get this file into your ComputerCraft Computer, run the following after
  14.          right-clicking on your ComputerCraft computer (includes prompts).
  15.  
  16. It is recommend to change the "nick" part of the line below to your MC name
  17. so that you can distinguish your controller.
  18.  
  19.         > rm startup
  20.         > lua
  21.         lua> shell.run("pastebin", "get", "MuS68wCr", "install"
  22.         lua> exit()
  23.     > edit install (to change nick optional)
  24.         > install
  25.  
  26.      or
  27.  
  28.         > rm install
  29.         > pastebin get MuS68wCr install
  30.     > edit install (to change nick optional)
  31.         > install
  32.  
  33. Requirements:
  34.         Advanced Monitor size is 3 tall x 4 wide size
  35.         Computer or Advanced Computer
  36.         Modems (not wireless) connecting each of the Computer to both the Advanced
  37.         Monitor and Reactor Computer Port (with turbine support).
  38.  
  39. Reactor pastebin code http://pastebin.com/YbHGQ2wY
  40. Button pastebin code http://pastebin.com/wGAt78pv
  41. Startup pastebin code http://pastebin.com/irim4gRD
  42.  
  43.         Code may or may not be kept updated.
  44. ]]--
  45.  
  46. -- It is recommend to change the "nick" part of the line below to your MC name
  47. -- so that you can distinguish your controller.
  48. os.setComputerLabel("nick_DW20_BR_Controller")
  49.  
  50. -- Remove any prior, possibly old, versions of DW20's reactor controls
  51. shell.run("rm", "reactor")
  52. shell.run("rm", "button")
  53. shell.run("rm", "startup")
  54. -- Download http://pastebin.com/ and name "reactor" and "button"
  55. shell.run("pastebin", "get", "wGAt78pv", "button")
  56. shell.run("pastebin", "get", "YbHGQ2wY", "reactor")
  57. shell.run("pastebin", "get", "irim4gRD", "startup")
  58. term.write("Install complete... Rebooting")
  59. sleep(5)
  60. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement