Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- computerIds = { 0 } -- You can get the ID by typing "id" into the terminal.
- reactor = peripheral.find("draconic_reactor")
- if reactor == nil then
- print("No reactor found!")
- return
- end
- local modemCount = 0
- for i,v in pairs(redstone.getSides()) do
- if peripheral.getType(v) == "modem" then
- rednet.open(v)
- modemCount = modemCount + 1
- end
- end
- if modemCount < 1 then
- print("You need one wireless/ender modem.")
- return
- end
- function mainStuff()
- while true do
- info = reactor.getReactorInfo()
- for i,id in pairs(computerIds) do
- rednet.send(id, info)
- end
- sleep(2)
- end
- end
- parallel.waitForAll(mainStuff)
- --setFailSafe(bool)
- -- cold warming_up running stopping cooling
- -- beyond_hope
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement